Need Help in Coding this strategy

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

As per the above query lets assume Coefficient as 5

Supertrend Resistance

SET A = (HIGH+LOW)/2

SET B = 5* TR(10)

A+B

Supertrend Support

SET A = (HIGH+LOW)/2

SET B = 5* TR(10)

A-B

can u explain me what is coefficient here?