I am using a stop loss method:
SetStopLoss("EnterShortLimit_Mid-BB0", CalculationMode.Ticks, stopTarget, true);
It works perfectly unless I enter, for example, a short trade at 1.1477 and the open of that bar(time frame) is greater then 80 pips.
Attached is an image showing a 30 min time frame with an 80 pips SetStopLoss. I go in at 1.1477 and the opening of that bar is 1.1561, which is 1.1477 - 1.1561 = -84pips. But you can see the other bet in the same bar goes in at 1.1500 and the stop loss is not triggered...
What am I missing? I know that the trade did not go out properly because that would mean the price would have had to dropped to 1.1477 and then go back up to 1.1561 and then all the way down to close all in 30min. And this would have happened twice in a row because the bar before the above trade has the same issue.
I am using two timeframes, a 30 min which is what you see in the cart and a 1 min timeframe that I use for my entryOrders. So where does that leave my SetStopLoss orders in regards to time, ticks I believe...? I have placed my SetStopLoss' inside of the Initialize() method and inside of both 30 and 1 min time frame but I always get the same result.
Thanks for thoughts!!
4D
Comment