I need help combining the Market Sentiment indicator with Qstick indicator. Here is what I have, but Market Sentiment is not showing and it does not show on mobile either. I would like to be able to use it with mobile.
Here is what I have:
Here is what I have:
Code:
declare lower;
def na = Double.NaN;
script normalizer {
input data = close;
input Min = 0;
input Max = 100;
input length = 50;
def hhData = Highest(data, length);
def llData = Lowest(data, length);
plot resized = (((Max - Min) * (data - llData)) /
(hhData - llData)) + Min;
}
#
# TD Ameritrade IP Company, Inc. (c) 2017-2023
#
# Source code isn't available.
declare lower;
plot MarketSentiment = Double.NaN;
#
# TD Ameritrade IP Company, Inc. (c) 2007-2023
#
declare lower;
input Length = 8;
plot QStick = Average(close - open, length);
QStick.SetDefaultColor(GetColor(1));
plot ZeroLine = 0;
ZeroLine.SetDefaultColor(GetColor(5));
Last edited by a moderator: