Wilsontrader
New member
Hey guys im trying to apply a multi-timeframe setting to this indicator I made with no luck so far. It puts a dot above/below the current candle if the up/down differential on the Aroon Oscillator is above/below the input thresholds. So ideally this would give a dot from a 1 hour chart on your current 5min chart candle indicating a sell/buy signal from a higher timeframe. Ultimately i'd like to put a few of these on my 5min chart and get signals from 1hr,4hr, and daily Aroon Oscillators.
If anyone knows how to help I would really appreciate it
def na = Double.NaN;
input length = 25;
input period1 = AggregationPeriod.HOUR;
def range = high(period=period1) - low(period=period1);
def plotter = range * 0.3;
Input uThreshold=99;
input lThreshold = -99;
def aroonUp = reference AroonIndicator(length = length).Up;
def aroonDown = reference AroonIndicator(length = length).Down;
def UpDownDiff = aroonUp - aroonDown;
plot lowtick = if UpDownDiff <= lThreshold then low - plotter else na;
plot hightick = if UpDownDiff >= uThreshold then high + plotter else na;
lowtick.SetDefaultColor(Color.YELLOW);
lowtick.SetStyle(Curve.POINTS);
lowtick.SetLineWeight(4);
hightick.SetDefaultColor(Color.YELLOW);
hightick.SetStyle(Curve.POINTS);
hightick.SetLineWeight(4);
If anyone knows how to help I would really appreciate it
def na = Double.NaN;
input length = 25;
input period1 = AggregationPeriod.HOUR;
def range = high(period=period1) - low(period=period1);
def plotter = range * 0.3;
Input uThreshold=99;
input lThreshold = -99;
def aroonUp = reference AroonIndicator(length = length).Up;
def aroonDown = reference AroonIndicator(length = length).Down;
def UpDownDiff = aroonUp - aroonDown;
plot lowtick = if UpDownDiff <= lThreshold then low - plotter else na;
plot hightick = if UpDownDiff >= uThreshold then high + plotter else na;
lowtick.SetDefaultColor(Color.YELLOW);
lowtick.SetStyle(Curve.POINTS);
lowtick.SetLineWeight(4);
hightick.SetDefaultColor(Color.YELLOW);
hightick.SetStyle(Curve.POINTS);
hightick.SetLineWeight(4);