I want to créate ExitLong in case of
if (BarsInProgress == 0)
{
….
if (High[0]<High[1]
&& Close[0]<Close[1]
&& Low[0] <Low[1]
&& High[1]<High[2]
&& BarsSinceEntryExecution(0,"CH",0) >3
)
{Print("BarsSinceEntryExecution = "+BarsSinceEntryExecution(0,"CH",0));
ExitLong(0,1,"LL","CH");}
It doesn´t execute ExitLong , but DOES execute
I hve tried :
if (High[0]<High[1]
And it DOES work.
Anyone could help me?
Its back testing.
Comment