Hi, I have been trying for hours but have been unable to modify an indicator to get the signal arrows in the same screen with the indicator. When I try to add the arrows the indicator height listing goes from number to percentages. I also want to restrict the down signal arrows to only occur if the indicator turns from going up to down if it turns above the 75% line. And arrow signals from below if it turns up from below the 25% line. I would be satisfied if I couldn do just one side. The difficulty is do to TOS turning the indicator to percentages. I am try to do this for a number of indicators. But if I can see the code for one I should be able to do the others. I have include a sample of what I would like. The sample of the screen showing what is would like is hand drawn and not from any actual code.
Code:
#
# TD Ameritrade IP Company, Inc. (c) 2007-2021
# Detrended Price Oscillator
declare lower;
input colorNormLength = 14;
input length = 14;
input price = close;
plot DPO = price - Average(price[length / 2 + 1], length);
plot ZeroLine = 0;
DPO.DefineColor("Highest", Color.YELLOW);
DPO.DefineColor("Lowest", Color.LIGHT_RED);
DPO.AssignNormGradientColor(colorNormLength, DPO.color("Lowest"), DPO.color("Highest"));
ZeroLine.SetDefaultColor(GetColor(5));
Last edited by a moderator: