♥ 0 |
Hello Hahn, Hope you’re doing well! I was wondering if you could help me modify the ToS indicator “rate of change crossover (positive to negative) & (negative to positive)” to only display for the current day. Thank you so much for your help!
Marked as spam
|
Private answer
You did not specifically mention you are using an intraday time frame. But for this solution I am assuming you are. There are many solutions of this type in the forum. You will find examples of this in the following posts: https://www.hahn-tech.com/ans/previous-ohl-study-show-only-today-with-labels/ https://www.hahn-tech.com/ans/parabolicsar-indicator-display-current-day-only/ https://www.hahn-tech.com/ans/vwap-indicator-for-current-day-only/ https://www.hahn-tech.com/ans/hide-previous-day-sr-lines-camarilla-points-study/ The key to this is in the very first line of code I added to the existing code provided with Thinkorswim. The variable name is "okToPlot" and it is inserted into any section of the code which you want to be active for only the current trading session. So we add this line to the top of the code:
And we apply that to the plot statement from the original, like this:
The full solution is listed below:
Marked as spam
|
Please log in to post questions.