Sometimes the SetStopLoss is send even when the condition is not meet.
I have used the Print() funtion and the strategy do not enter into the block of code in bold, but for some reason the SL is send anyway.
Any Clue why is happening?
I use daily bars
Thanls a lot
if (Position.MarketPosition==MarketPosition.Flat)
{
if (GAP_Up==true)
{
EnterShort();
SetProfitTarget(CalculationMode.Price,TP_Level);
if (Low[-1]>Close[0])
{
SetStopLoss(CalculationMode.Ticks,SL_Level);
}
GAP_Up=false;
}
}
Comment