This is a very simple script. It displays a message above the latest price. I coded it because I need a constant reminder to keep me from overtrading.
You can customize several options:
- The message text
- How high above the latest price the message is displayed
- How often it is displayed. 1=display constantly, 2=only show it during every other period, 3=only show it every 3rd new period, etc. So, for example, if you are on the 15 minute chart, and set a frequency of 3, it will show it for the first 15 minutes out of every 45.
- Color and lightness. This can be used as an example of how to add a color selection input to your own scripts.
You can customize several options:
- The message text
- How high above the latest price the message is displayed
- How often it is displayed. 1=display constantly, 2=only show it during every other period, 3=only show it every 3rd new period, etc. So, for example, if you are on the 15 minute chart, and set a frequency of 3, it will show it for the first 15 minutes out of every 45.
- Color and lightness. This can be used as an example of how to add a color selection input to your own scripts.
Release Notes
By request, I added some highly advanced, complicated new features. Now you can choose the text size, how many bars back from the last bar you want to position the text, and whether it's displayed above, at, or below the price!Note: by positioning using time instead of bar index, it would be possible to move the text ahead (to the right of) the last bar, but I've found that this gets complicated because you have to account for the time frame of the graph, so I leave this as an exercise for someone else.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
apop@apopheniapays.com
Twitter/TradingView: ApopheniaPays
Twitter/TradingView: ApopheniaPays
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
apop@apopheniapays.com
Twitter/TradingView: ApopheniaPays
Twitter/TradingView: ApopheniaPays
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.