♥ 0 |
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 . thank you
Marked as spam
|
Private answer
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
|
Please log in to post questions.