I made an indicator that takes the difference of 2 moving averages. I would like to make 2 more indicators that take the close value of each bar, of my indicator, and add it or subtract it based on its value, back 10 days or so.
This other indicator I am trying to make would only be charting the difference in the last bar of my indicator and the current bar.
Can anyone help with this, much appreciated!
If you've created a custom indicator already with syntax..
MA_A - MA_B
which takes the difference between 2 MAs....
You can now create another custom indicator with syntax....
CI - CI.10
and that will give you the difference between your CI and the CI 10 bars ago.
If you want to do it all in once custom indicator....
(MA_A - MA_B) - (MA_A.10 - MA_B.10)