♥ 0 |
I’ve calculated a variable called “slope”, which is a number that can be positive or negative. For each new day I’d like the script to test if the polarity flips (+ to – or – to +), and if so, to indicate that on the chart. I’m not sure how best to do this. Any help would be appreciated. Thx.
Marked as spam
|
Please log in to post questions.
Ok. In your original request you did not ask for an alert. You stated that you wanted the chart to indicate when the direction has changed. In the example code of the HullMovingAvg you can replace the plot variable ”HMA” with your variable ”parabola”. Then you have to replace every other occurrence of ”HMA” with ”slope”.