therecluse
New member
I would like to add both an arrow and an alert to the standard AroonIndicator (not the AroonOscillator) that comes in Think or Swim. I only need it to go off when either the up or down hits positive oversold100%. I don't always watch the chart series that this would go on, so I would like an alert/arrow to warn me when this event happens so I can start to look for my crossovers.
Any help is appreciated, thank you.
Any help is appreciated, thank you.
Ruby:
#
# TD Ameritrade IP Company, Inc. (c) 2007-2022
#
declare lower;
input length = 25;
Assert(length > 0, "'length' must be positive: " + length);
plot Up = (length - 1 - GetMaxValueOffset(high, length)) * 100.0 / (length - 1);
plot Down = (length - 1 - GetMinValueOffset(low, length)) * 100.0 / (length - 1);
plot OverBought = 70;
plot OverSold = 30;
Up.SetDefaultColor(GetColor(1));
Down.SetDefaultColor(GetColor(5));
OverBought.SetDefaultColor(GetColor(8));
OverSold.SetDefaultColor(GetColor(8));
Last edited by a moderator: