First of all im a ninja 6.5/trading newbie so apologies in advance if anything sounds too silly :-)
I have been trying to get to grips with ninja strategy backtesting and have come across a problem in my hand calculation testing :
I'm using this code to set my strategy backtest trade and stops based on daily close historic data in ninja
EnterShort(NoOfShares,"SHORT" );
SetStopLoss(CalculationMode.Percent, 0.10);
and it seems superficially (im checking at the mmt) ok except that ive come across a situation where the stop isnt triggered in the following situation
RSL.L
20/07/2010
OPEN - 68.15
HIGH - 68.20
LOW - 64.35
CLOSE - 64.75
21/07/2010
OPEN - 253.8
HIGH - 253.8
LOW - 229.0
CLOSE - 246.0
So theres a rising window and my strategy had a running SHORT trade on the 20/7 which instead of being stopped out at 10% above the short entry price @ 75.35 was stopped out at 253.8 .. such a big loss i noticed it on code testing ;-)
Now i guess I'm asking if one of the strategy or ninjacode settings can be for "guaranteed" stops rather than stopping at the next days OPEN price in this case
rgds
ian
Comment