I have a condition where I check to see if the 5 minute MACD is going down from the one before last, and then a secondary check for two bars behind that, so.
if (macdhistogramtwo[0] < macdhistogramtwo[1] && macdhistogramtwo[1] < macdhistogramtwo[2])
But when I try to use this, it just doesn't trade at all.
Although, when I change the second condition to.
if (macdhistogramtwo[0] < macdhistogramtwo[1] && macdhistogramtwo[2] < macdhistogramtwo[3])
it works fine.. why is that?

Comment