vars c1 = series(Osc[0]-0.8);
vars c2 = series(0.2-Osc[0]);
// Trend following - Ehler's
if(pcr_sma[0] < 50)
{
#ifndef USE_PREDICT
if(crossOver(Osc,0.8))
enterShort();
if(crossUnder(Osc,0.2))
enterLong();
#else
if(predict(CROSSOVER,c1,10,0.01) > -5)
enterShort();
if(predict(CROSSOVER,c2,10,0.01) > -5)
enterLong();
#endif
}