I am printing out the Trailing Stop and the variable 'TrStop[0]' is getting updated properly but the Long/SHort positions are not being stopped out properly - seems to be getting stopped out next bar after entry at market??????!
Here is the snippet of code in question
if (Position.MarketPosition == MarketPosition.Long)
{
SetTrailStop("", CalculationMode.Ticks, TrStop[0], false);
Print("LX_Stop == 0: Date and Time "+Time[0]+" TrStop[0] is "+TrStop[0]+" Trendflo is "+Trend_flo);
Here is the printout (based on AAPL EOD Data from Yahoo)
Long Entry 100 @92.77
LX_Stop == 0: Date and Time 05/02/2009 00:00:00 TrStop[0] is 86.5045461142569 Trendflo is 1
Trend_flo == 0: Date and Time 06/02/2009 00:00:00 TrStop[0] is 89.8318350394715 Trendflo is 1 << Get Stopped out at 97.02 yet stop is 89.8318350394715 ???????
Using Yahoo EOD data feed for backtesting
Under Format > Strategies whats the difference between "ByStrategyPosition " and "PerEntryExecution" for "Stop & target submission ??
Where canI find a complete manual on Format > Strategies ?
}

Comment