Hello there…I need a code for this strategy based on ATR…
Average Price = (HIGH+LOW)/2
offset= coefficient * Average True Range (n period)
Supertrend Resistance = Average Price+ offset
Supertrend Support = Average Price- offset
where n is10 and the default offset is 3