Wondering if you can help :
I am writing a strategy that runs on the daily bar (primary period is 1Day) and have come across a problem - during a back-test with the StrategyAnalyzer if the profit and stop-loss are on the same daily candle - StrategyAnalyzer is telling me that the trade hit the stop. However looking at a lower time-frame manually - the trade actually hit the profit target before the stop loss in terms of the 4hr candle on the same day.
Reading here, it appears that the StrategyAnalyzer evaluates on OHLC - so why am I hitting the stop before the profit target if the profit target happens before the stop on the same day and the high of that day is above my target?
For example :-
//GBPUSD
SetStopLoss("BullTrade", CalculationMode.Price, Stop, false);
SetProfitTarget("BullTrade", CalculationMode.Price, Target, false);
EnterLongStopLimit(0, true, 1, Entry, Entry, "BullTrade");
Trade was executed on the 11th Oct 2013 00:00
Trade exited on the 16th Oct 2013 00:00
Entry = 1.59799
Target = 1.60469
Stop = 1.59139
The high on that day was at 1.60574
The low on that day was at 1.58944
In StrategyAnalyzer the trade exited at my stop (1.59139) even though looking at the chat at a more granular level - the Target should have been hit before the stop?
What am I doing wrong here ?
Thanks
Comment