I am trying to reference the lowest ATR value over the last X days, but am getting a compile error with the MIN function. Below is the code which is used in an if statement:
ATR(volatilityLength)[0] <= MIN(ATR(volatilityLength)[0],volatilityLength)[0]
volatilityLength is an int variable.
I am getting two errors for the same line, one is an overload method match, and the other is saying that it cannot convert from 'double to ninjatrader .. data series..'
Any thoughts?
Cheers!
Shane
Comment