Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 20:49:06 +0000



Study based on specific period

View Count: 823

[2020-05-29 11:55:00]
chart_warrior - Posts: 96
Is it possible to have a study (e.g. moving average) start calculation based on a different time?
For example I have a chart starting at 9:30 but I want MA to start calculation from 10:00.
I know I can create another chart with 10am start time and overlay the study but I don't want to have too many charts open for no reason
[2020-05-29 14:38:32]
chart_warrior - Posts: 96
Anyone?
[2020-05-29 14:51:38]
Ackin - Posts: 1865
There are several ways to do this ... but I can't think of any through the default studies list.



-You can hide / show the study when the time condition is not met

-You can, if it is one specific study, edit it in Acsil in the datastartIndex line (that is, if it has to "work" from the place of the completed time not before)

-You can only take the study reference when the time is right
[2020-05-29 15:20:51]
chart_warrior - Posts: 96
There are several ways to do this ... but I can't think of any through the default studies list.



-You can hide / show the study when the time condition is not met

-You can, if it is one specific study, edit it in Acsil in the datastartIndex line (that is, if it has to "work" from the place of the completed time not before)

-You can only take the study reference when the time is right
Thank you.
How can I edit it? It's a user contributed study "Volatility Profit Indicator".
Seems like so much work for a fairly simple thing..

Maybe someone from Sierra can comment?
[2020-05-29 15:54:19]
Ackin - Posts: 1865
The shifted average shift curve will match the results with the second curve (for a period of, for example, "20" after twenty bars, they will be the same). So you just want to hide this study for the first half hour ... Right?
[2020-05-29 16:09:18]
chart_warrior - Posts: 96
The shifted average shift curve will match the results with the second curve (for a period of, for example, "20" after twenty bars, they will be the same). So you just want to hide this study for the first half hour ... Right?

Hmm, I don't know if hiding it will affect calculation. I want a study to start calculation from e.g. 10am instead of 9:30am.
[2020-05-29 16:15:53]
Ackin - Posts: 1865
ok I'll write more and explain:


example:

two moving averages, chart with setting 1 bar = 1 minute
both have a period of "10"

the first moving average starts at 9:30
the second moving average starts at 10:00

at 10:11 they both have the same value


the difference in the time of the beginning of the study is manifested only in the calculated values ​​where there is accumulation or reaction to the previous bars (cumulative delta, vwap, etc.). In the moving average, the differences in the start time are lost when the period lenght in the setting is exceeded ....because it works only with a specific number of bars (length of the period) and the previous bars before this period do not take into account.

Simple Moving Average = summation values from period / period
Date Time Of Last Edit: 2020-05-29 16:42:12
[2020-05-29 16:24:30]
Ackin - Posts: 1865
Volatility Profit Indicator

In your mentioned study:
this is the whole body of the calculation commands


  sc.ATR(sc.BaseDataIn, atrSubgraph, atrPeriodInput.GetInt(), MOVAVGTYPE_SIMPLE);
  
  sc.MovingAverage(sc.BaseDataIn[SC_HIGH], uMaSubgraph, maTypeInput.GetMovAvgType() , cur, ulPeriodInput.GetInt());
  sc.MovingAverage(sc.BaseDataIn[SC_LAST], mBandSubgraph, maTypeInput.GetMovAvgType() , cur, mPeriodInput.GetInt());
  sc.MovingAverage(sc.BaseDataIn[SC_LOW], lMaSubgraph, maTypeInput.GetMovAvgType() , cur, ulPeriodInput.GetInt());
  
  uBandSubgraph[cur] = uMaSubgraph[cur] + (atrMultiInput.GetFloat() * atrSubgraph[cur]);
  lBandSubgraph[cur] = lMaSubgraph[cur] - (atrMultiInput.GetFloat() * atrSubgraph[cur]);
}

There are only moving averages and ATR ... the shift in the calculation time will have no effect on it .... you will only have a study of the first half hour hidden nothing more .....
as I wrote above (#5)...
So you just want to hide this study for the first half hour ... Right?

Date Time Of Last Edit: 2020-05-29 16:26:39
[2020-05-29 17:02:30]
chart_warrior - Posts: 96
Make sense. How would I hide a certain time period?
Date Time Of Last Edit: 2020-05-29 17:02:39
[2020-05-29 17:07:39]
Ackin - Posts: 1865
Make sense. How would I hide a certain time period?
I created study for this:
Hiding/Showing study at a specif time
[2020-05-29 17:41:06]
chart_warrior - Posts: 96
Thanks. I registered on your site to get access to the study.

Wonder if it's possible to get Sierra to add this feature for any study. I know other charting software have this.
[2020-05-29 18:30:45]
Ackin - Posts: 1865
I registered on your site to get access to the study.

Check your email, you have access to all studies, not just this one (more than 200).

Wonder if it's possible to get Sierra to add this feature for any study. I know other charting software have this.

It's probably not necessary ... in Sierrachart there is a shift in the form of "displacement" and if someone wants what you usually create a new study. I have been going to this forum for 10 years and I saw a similar request for the first time ..... 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