I placed the built in mov_average_2_lines indicator on my chart. The fast line was 55 and slow was 100.
The indicator does not draw the MA lines all the way back through the all the bars? I could not find anything in the settings for this. Any one why it does this?
Screenshot
Moving Averages not drawn completely [SOLVED]
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Moving Averages not drawn completely [SOLVED]
Hello Traderji,
This is how auto detect has set the MaxBarsBack value.
The minimum MaxBarsBack is the largest MaxBarsBack required by all plots of the study.
MaxBarsBack is the amount of bars that would be used for initial script calcualtion, to get the initial value of functions, variables. This amount of bars would be skipped, so you will see a first signal on maxbarsback+1 bar (for ex, may vary depending on the strategy).
Chart data range should be higher than MaxBarsBack value.
For example Moving Average of 100 bars would require a setting of 100.
If you want the plot to start from 101 bar please go to Format->Study->Mov Avg 2 lines->Format->Properties->Max number of bars study will reference->100.
This is how auto detect has set the MaxBarsBack value.
The minimum MaxBarsBack is the largest MaxBarsBack required by all plots of the study.
MaxBarsBack is the amount of bars that would be used for initial script calcualtion, to get the initial value of functions, variables. This amount of bars would be skipped, so you will see a first signal on maxbarsback+1 bar (for ex, may vary depending on the strategy).
Chart data range should be higher than MaxBarsBack value.
For example Moving Average of 100 bars would require a setting of 100.
If you want the plot to start from 101 bar please go to Format->Study->Mov Avg 2 lines->Format->Properties->Max number of bars study will reference->100.