Login Page - Create Account

Support Board


Date/Time: Sun, 12 May 2024 07:13:50 +0000



[Programming Help] - Distance from Moving average on a percentage basis

View Count: 1395

[2020-08-26 15:10:56]
User292326 - Posts: 13
I'm looking for a study that would show me the distance from a given moving average on a percentage basis. Formula wise it would be (Price - Price of MA) / (Price). Is there a study that would show me this? If not, any assistance in creating it would be greatly appreciated.
[2020-08-26 15:15:09]
Ackin - Posts: 1865
the arithmetic studies:
Using the Basic Arithmetic Studies

You need:
Study Subgraphs Subtract/Difference
and
Study Subgraphs Divide/Ratio
[2020-08-27 16:42:51]
User292326 - Posts: 13
Thank you! This got me what I needed. I used an additional study of Study Subgraph multiply so that the number would be a percentage rather than decimal. Regardless, your proposed solution worked for me. Thanks!!
[2020-08-28 15:48:07]
John - SC Support - Posts: 31555
Note that there is a Value Format of Percent that you could use to display the data as a whole Percentage instead adding another study. Refer to the information here:
Chart Studies: Settings and Inputs Tab >> Value Format
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2020-08-28 17:30:05]
Ackin - Posts: 1865
Thank you! This got me what I needed. I used an additional study of Study Subgraph multiply so that the number would be a percentage rather than decimal. Regardless, your proposed solution worked for me. Thanks!!

What market are you watching? I am currently dealing with this topic a lot with other people on another forum. Rotations and deviations from curves ... Do you also use ZigZag rotations?
[2020-08-29 16:35:21]
User292326 - Posts: 13
Thank you @John - SC Support. I removed the multiply study and just changed the value format. Much appreciated!
[2020-08-29 16:36:32]
User292326 - Posts: 13
@Ackin I am watching the US Indices. So the ES NQ and RTY mainly. I don't use ZigZag rotations. Are they worth looking into? Meaningful backtest?
[2020-08-29 17:19:45]
Ackin - Posts: 1865
I am watching the US Indices. So the ES NQ and RTY mainly.
We follow the same markets

I don't use ZigZag rotations. Are they worth looking into? Meaningful backtest?
You will have better ZigZag if you collect statistical data because it has more precise rules. Moving averages do not follow the same path with the constant change of market dynamics (you would have to constantly calibrate the indicator period) ... by that I mean that with a more volatile course, your statistics will be a little skewed. Now I don't have that much time, I'm a bit busy with new updates but during the next month I want to make an indicator: statistical collector for ZigZag. If you are interested, write me then a DM

Have a nice day

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account