When i test my strategy on historical data i receive an error:
**NT** A BuyToCover stop order placed at '22.06.2010 12:00:00' has been ignored since the stop price is less than or equal to the close price of the current bar. This is an invalid order and subsequent orders may also be ignored. Please fix your strategy.
I explore this on chart and i see i create sellstop order in 90. bar and then 91.bar my entry price hit and order execute when execute entry order i create stop entry-x pips from entry. The 91.bar range a little big and my stop price inside this bar body range. Why NT giving this error for this type situations?
Then i manually add some pips stop price entry-xpips+ 1pip that still inside 91.bar range but outside body range(i mean big from bar.open price and small from bar.high price. This time i don't receive an error but NT stopped this trade. Why NT doing this?
Actually this trade successful trade i understand this clearly when i look at my chart(I explore price action in 1 min bar chart too.). So with NT do historical test has no meaning!
I know historical don't have tick by tick test like market replay test. But I think NT behavior is wrong.
ALSO i really don't understand crossabove and below logic too. Suppose i want to enter long when price fist must be over EMA(21) then must be fall under EMA(21) and if again rise and go above ema21 I want to go long. So simply, i have to define some flags and control EMA21 and close price series cross actions. But at this time suppose price 1.2020 ema21 1.2018 then next bar price do little gap and open new bar at 1.2016 this stuation crossbelow returning false. WHY?
ALSO ALSO
My Strategy Initialize methos have some code. Some code related strategy some codes related indicators for use make a decision buy, sell etc. My strategy calculateonbarclose = false but i want to my indicators don't. for this for example i write like this:Add(EMA(21));
EMA(21).calculateonbarclose = true;
but at market replay i see EMA calculating tick by tick??????????????? Why? How?
Thanks...

Comment