Median moving average for keltner channel

Hello Experts,

I created a script alert and trading strategy using Keltner channel in Pie however, I want to add a median line between them same in bollinger or donchain channel… please provide me with the code for the same so i can add it to complete this strategy …please help

CLOSE > KCT(20, EXPONENTIAL, 1.3)

CLOSE < KCB(20, EXPONENTIAL, 1.3)

Is this code I should look for

SET MedianAverage = SimpleMovingAverage((CLOSE + OPEN) / 2, 30)

Yes for the Median Average Price

SET MedianAverage = SimpleMovingAverage((CLOSE + OPEN) / 2, 30)

or

SET MA = SMA((CLOSE + OPEN) / 2, 30)

it will work  in tradescript

I’ll try and REply back thanks!!

@algogreek sir how do i plot this median on live intraday chart… is there an way to add it default to keltner channel
Regards,
mahendra