I need help for HIGHEST + LOWEST addChartBubble, value(stock price) and time(time execute) . THANK YOU FOR YOUR KINDNESS.
https://usethinkscript.com/threads/highest-point-on-each-intraday.1438/#post-13267
# High RTH
# tomsk
# 1.6.2020
declare hide_on_daily;
def active = GetTime() >= RegularTradingStart(GetYYYYMMDD());
def H = if active and !active[1]
then high
else if active and high > H[1]
then high
else H[1];
def Hbn = if high == H then barNumber() else Double.NaN;
plot HLine = if barNumber() >= HighestAll(Hbn) then H else Double.NaN;
HLine.SetDefaultColor(Color.Yellow);
def L = if active and !active[1]
then low
else if active and low < L[1]
then low
else L[1];
def Lbn = if low == L then barNumber() else Double.NaN;
plot LLine = if barNumber() >= HighestAll(Lbn) then L else Double.NaN;
LLine.SetDefaultColor(Color.Yellow);
# end
Thank you
https://usethinkscript.com/threads/highest-point-on-each-intraday.1438/#post-13267
# High RTH
# tomsk
# 1.6.2020
declare hide_on_daily;
def active = GetTime() >= RegularTradingStart(GetYYYYMMDD());
def H = if active and !active[1]
then high
else if active and high > H[1]
then high
else H[1];
def Hbn = if high == H then barNumber() else Double.NaN;
plot HLine = if barNumber() >= HighestAll(Hbn) then H else Double.NaN;
HLine.SetDefaultColor(Color.Yellow);
def L = if active and !active[1]
then low
else if active and low < L[1]
then low
else L[1];
def Lbn = if low == L then barNumber() else Double.NaN;
plot LLine = if barNumber() >= HighestAll(Lbn) then L else Double.NaN;
LLine.SetDefaultColor(Color.Yellow);
# end
Thank you
Last edited by a moderator: