benjaminbarch

Session High and Low Indicator

benjaminbarch 已更新   
This script is meant for stocks that have a pre-market session. It is meant to be used on the 1 min time frame. This script will draw a green line at the high of pre-market, and a red line at the low of pre-market and extend these lines across the regular session day

This makes it easy to see if price action during regular market has broken above pre-market high or broken below pre-market low.

The high/low skips any quick spikes in price action (similar to what happens at 8:30 am every day).
版本注释:
This script is meant for stocks that have a pre-market session. It is meant to be used on the 1 min time frame by default. Higher time frames will need the ATR[2} setting adjusted higher. This script will draw a green line at the high of pre-market, and a red line at the low of pre-market and extend these lines across the regular session day. This makes it easy to see if price action during regular market has broken above pre-market high or broken below pre-market low. The ATR setting adjustment is used to ignore any quick spikes in price action (similar to what happens at 8:30 am every day).
版本注释:
display edits - minor tweaks
版本注释:
Separated the Pre-Market High/Low Lines from the Lines drawn during RTH so that alerts could be used during RTH hours only
版本注释:
reworded a wonky if statement to make more sense
版本注释:
* Major revision to how the code calculates
* One line each for PM High and for PM Low. No more dual lines
* Alert Conditions for when price breaks above or below the Pre-Market Channel
* Cleaned up Code and Labels
* Enjoy !
版本注释:
* Changed how the script calculates the High/Low. Now checks the ATR(2) / ATR(14) < ATR Threshold in User Settings.
* This allows the Indicator to work much better on higher time frames than it did previously.
版本注释:
* Changed default ATR Threshold percent to 300% as that seemed to be the sweet spot of what I was looking to accomplish finding the general Pre-Market edges, while ignoring quick spikes
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?