here is the code :
if (CurrentBar<slow)
return;
FastMA.Set(MaGauss(fast,3)[0]);
SlowMA.Set(MaGauss(slow,3)[0]);
Trend.Set(KeoBullBear(avg,smoothing)[0]);
if ( CrossAbove(FastMA,SlowMA,1) && Trend[0]>0 && Condition1==true)
{
DrawArrowUp("Long"+CurrentBar,false,0,Low[0]-TickSize,Color.Yellow);
Condition1=false;
Condition2=true;
}
if (CrossBelow(FastMA,SlowMA,1) && Trend[0]<0 && Condition2==true)
{
DrawArrowDown("Short"+CurrentBar,false,0,High[0]+TickSize, Color.Magenta);
Condition2=false;
Condition1=true;
}
May someone help ?
Comment