Plot highest high and lowest low since last earnings


Category:
0
0

Hi Pete,

Im wondering if you can help me plot (draw) a line for the highest price and lowest price after the last earnings.

Thanks for the help.

RESOLVED
Marked as spam
Posted by (Questions: 4, Answers: 13)
Asked on December 23, 2020 10:48 am
169 views
0
Private answer

declare hide_on_intraday;
rec trackHighest = if HasEarnings()[1] then high else if high > trackHighest[1] then high else trackHighest[1];
rec trackLowest = if HasEarnings()[1] then low else if low > 0 and low < trackLowest[1] then low else trackLowest[1];
plot highest = trackHighest;
highest.SetDefaultColor(Color.DARK_GREEN);
plot lowest = trackLowest;
lowest.SetDefaultColor(Color.DARK_RED);

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on December 23, 2020 12:23 pm