I want to develop a strategy on a single instrument, which can have an arbitrary number of positions open at any time. Many longs and many shorts, all with there own stop and take profit levels.
I've had a lot of success programming strategies with just one open trade at a time, using EnterLong(), EnterShort(), SetStopLoss(), and SetProfitTarget().
I guess my question is, can I use the same functions if I anticipate many trades open at once? I know I have to rework a lot of the logic I have in place, but aside from that. I'm trying to figure out the best way to use the signal names ... something like EnterLong("Long" + someLongIntTradeCounter) ... does this make sense? Then I'd use that same string for the stops and take profits. Is this the best way to handle the above problem or will I be overcomplicating something NT already does?
Keep in mind if I do the above, and backtest for say a year, I may end up with Long1254363 as a trade counter ... I'm not sure if there are any problems with that.
I hope this was clear.
Comment