NT7 (Code Theory)
if (Position.Quantity < 1) //Buy Code { if (conditions are good) EnterLong(xShares,"") } if (Position.Quantity >= 1) //Sell Code { if (Close[0] > Position.AveragePrice) ExitLong("","") }
if (PositionAccount.Quantity < 1) //Buy Code { if (conditions are good) EnterLong(xShares,"") } if (PositionAccount.Quantity >= 1) //Sell Code { if (Close[0] > PositionAccount.AveragePrice) ExitLong("","") }
So in order to test I can just switch back the code to the NT7 like version above, test, and then change again to run it live. Correct?
The ultimate goal is for the strategy to enter the market if X conditions are true then if the PC must be restarted for it to know these basic values and continue operating so that after restarting when Y conditions are true it exits.
Am I on the right track or have I fallen off my tricycle?
Comment