How do I backtest a system that will reverse a position when stopped out?

I've got this so far:

====
stopLoss = 10;

ApplyStop(stopTypeLoss,stopModePoint,stoploss, 0,False,0);

Buy = Cross(TimeNum(), 100000);
Sell = Cross(TimeNum(), 150000);

Short = Cross(Open,BuyPrice - stoploss);
Cover = Sell;
====

I basically just want to go long at a particular time, and then if it is 
stopped out, go short at the same time. The trade will just close out a 
particular point in time.

Reply via email to