This script automatically draws the high/low of after hours and pre-market
Extended the line drawn to be clearly visible during market hours
You can now input your favorite time where to end looking for a high/low (e.g. ending hour = 10 and ending hour = 30 will mark the high/low until 10:30AM). Default value is ending hour = 9 and ending hour = 30 (9:30AM).
Added the possibility to visualize the past and, so, to backtest it more easily. Just unflag the "last only" option and enjoy it!
Keluarkan daripada Skrip PilihanTambah kepada Skrip Pilihan
@hldt041, I am afraid you can't since there a substantial difference on how Pine Script treats the "time" function for the daily time frames or higher. In fact, I couldn't find a way to use any pre-market data on a daily chart at all.
@ryanngaikar, Hi, thanks for your message. I am unsure about the possibility to add a video to this script. Anyway, this is quite straightforward. The only options you get to choose is the finish time (hour/minute) of the high/low that is set as 9:30AM (the time when the market opens in US) by default. The only other option is "Last Only" that is basically showing the today's extended session high/low in a more clear way. Disabling it would enable better data for past days that can be useful for backtesting purposes. Playing with it for some time should really shed light relatively quick. Do you have any specific black spot on this one?
@ryanngaikar, I am unsure about the Indian market itself. I tested 9:15AM for the US market and it works just fine. Did you try to disable the "last only option" to see how it performs in past sessions?