I want to set the stoploss as the Ichimoku Line SenkouSpanB, after some bars; maintein the original StopLoss, and then change it into the new SenkouSpanB. When I do it doesn't work, or if it works, the original stoploss dissapear.
I have this logic:
if (Bars.FirstBarOfSession == true)
Variable1 = IchiCloud(8, 22, 44).SenkouSpanB[0];
if (Position.MarketPosition == MarketPosition.Flat
&& Close[1] > SMA(SMALengh)[1]
&& Close[0] < SMA(SMALengh)[0]
&& Close[0] < IchiCloud(8, 22, 44).SenkouSpanA[0]
&& Close[0] < IchiCloud(8, 22, 44).SenkouSpanB[0])
{
EnterShort(1, "");
SetStopLoss("", CalculationMode.Ticks, 5, false);
SetProfitTarget("", CalculationMode.Ticks, ProfitTarget);
}
if (Position.MarketPosition == MarketPosition.Short)
SetStopLoss("", CalculationMode.Price, Variable1, false);
Comment