protected override void OnBarUpdate() { if (BarsInProgress == 1) { if (CCI(BarsArray[1],input1)[0]>100) { BarUp.Set(CCI(BarsArray[1],input1)[0]); } else if (CCI(BarsArray[1],input1)[0]<-10) { BarDown.Set(CCI(BarsArray[1],input1)[0]); } else { BarMiddle.Set(CCI(BarsArray[1],input1)[0]); } } }
protected override void OnBarUpdate()
{ if (CurrentBars[0] <= input1 || CurrentBars[1] <= input1 || BarsInProgress != 0) return; if (BarsInProgress == 1) { if (CCI(BarsArray[1],input1)[0]>100) { BarUp.Set(CCI(BarsArray[1],input1)[0]); } else if (CCI(BarsArray[1],input1)[0]<-10) { BarDown.Set(CCI(BarsArray[1],input1)[0]); } else { BarMiddle.Set(CCI(BarsArray[1],input1)[0]); } } }
Comment