Would it be possible to edit this accumulation distribution buy percentage code to have overbought & oversold levels based off of the last 14 periods?
declare lower;
def data = if close > close[1] then close - Min(close[1], low) else if close < close[1] then close - Max(close[1], high) else 0;
Plot AccDist = TotalSum(data);
Thanks in advance!
declare lower;
def data = if close > close[1] then close - Min(close[1], low) else if close < close[1] then close - Max(close[1], high) else 0;
Plot AccDist = TotalSum(data);
Thanks in advance!