// Condition set 1
if (Variable0 == 0
&& CrossAbove(Close, SuperTrend(14, 2.618, true).UpTrend, 1))
{
EnterLongLimit(1000, GetCurrentBid(), "");
Variable0 = 1;
Print ("Variable = 1");
}
and then, I have 2 exits (1 on a cross of the other direction and 1 in case it doesn't exit given that condition, and the close is below the downtrend). Here are those conditions.....
if (Position.MarketPosition == MarketPosition.Long
&& Variable0 == 1
&& (CrossBelow(Close, SuperTrend(14, 2.618, true).DownTrend, 1)))
{
ExitLong();
Variable0 = 0;
}
With my backup in case that doesn't execute (because I have seen that happen) looks like this..........
/ Condition getout 0 if Variable0 = 1
if (Position.MarketPosition == MarketPosition.Long
&& Variable0 == 1
&& (Close[0] < SuperTrend(14, 2.618, true).DownTrend[0]))
{
ExitLong();
Variable0 = 0;
}
Now my question is this......why on earth would this position not exit (in picture)????
Comment