if ((ATR(Period) >= Avalue) && (Range() <= Rvalue))
{
BarColor = Color.Yellow;
}
Operator '>=' cannot be applied to operands of type 'NinjaTrader.Indicator.ATR' and 'double'
and
Operator '<=' cannot be applied to operands of type 'NinjaTrader.Indicator.Range' and 'int'
Period and Rvalue are integers, Avalue is a double.
Thanks.

Comment