Hello guys I'm new!
I'm trying to code a strategy that includes ADX as a filter to determine a trending and a non trending market.
So I'm having issues expressing the ADX variable

I wrote it as


"vars ADX18 = series(ADX(Price,18));"


But I'm sure its wrong. I need help writing the code well. Thanks