Interesting. WealthLab uses C# which I can code, however, this seems a bit over-kill for such a linear application. Scripting languages should do the trick.
Sorry if this question sounds dumb, however, I don't understand how the code is linked to TWS to execute the orders