Unisciti alla nostra fan page
- Visualizzazioni:
- 4022
- Valutazioni:
- Pubblicato:
- 2018.07.13 15:48
-
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance
PAC (Periods After Crossing MA) is an oscillator displaying the number of bars elapsed after the last crossing of the price and the moving average.
If the moving average crossed the price upwards, then the positive histogram columns are drawn in green; if the last crossing was downwards, the negative columns are drawn in red.
The indicator has three configurable parameters:
- Period - MA period;
- Method - MA calculation method;
- Applied price - MA calculation price and crossing price.
Calculations:
-
If Price > MA and PrevPrice > PrevMA:
PAC = PrevPAC + 1
-
If Price < MA and PrevPrice < PrevMA:
PAC = PrevPAC - 1
-
If Price > MA:
PAC = 1
-
If Price < MA:
PAC = -1
where:
Price - SMA(Applied price, 1) MA - MA(Applied price, Period, Method)
Fig 1. By default, SMA(Close,14)
Fig 1. In the price chart, the SMA(Close,14)
Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/21264
![DMI_Difference](https://c.mql5.com/i/code/indicator.png)
Indicator showing the difference between the +DI and -DI of indicator ADX.
![BuffAverage](https://c.mql5.com/i/code/indicator.png)
Buff Dormeier's moving average weighted by volume.
![RP](https://c.mql5.com/i/code/indicator.png)
Indicator RP (Range Position) displays the price position within the range (from Low to High) reached over the previous N periods.
![Self_Adjusting_RSI](https://c.mql5.com/i/code/indicator.png)
In pscillator Self-Adjusting RSI, we have implemented the methods of automated adjusting the RSI oscillator overbought/oversold levels, described in David Sepiashvili's article The Self-Adjusting RSI.