Hello Pete , I need help creating a bubble that only shows at the HOD Price after 9:30am (not factoring in Premarket )
this bubble will only display the intraday HOD bars volume .
if that current HOD candle volume is over 300k, the bubble will be red, of under 300k. The bubble will be white .
if the stock has traded under 4 million volume on the day , the bubble will display ( ill liquid )
a walk through on this would be nice .
Marked as spam
The only way to do this is to use a function named HighestAll(). This function does not let us exclude any particular part of the trading day or a given trading session. So the chart would need to be set NOT to show extended session trade data. During the market hours as new bars are added to the chart the bubble will be changing locations as new highs are made.
Here is the code:
Stepping through the code:
If there happen to be two or more bars in the current day's trade that match the highest high, the chart bubble will appear on each and the volume data may grab the first or another bar's volume and therefore it's broken.
Marked as spam
this code is beautiful, I will use it also, I just have one question to Pete or the OP. Is there a way to hide the bubble if it triggers premarket so it only shows intraday
I'm pretty sure I already answered that in the my opening statements. The function named HIghestAll() is the key to making this work. Which requires that you apply this only to a chart that does NOT display extended trade data. Any attempts to prevent the chart bubble from plotting during extended hours sessions will break it entirely. Meaning the bubble will completely fail to plot if the high of day occurs during the extended hours session.
Please log in to post questions.