Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Telegram !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Vues:
5179
Note:
(9)
Publié:
2018.07.13 16:02
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

Oscillator Swing Shift displays the MA slope value exceeding the pre-defined threshold and the change in the moving average movement direction as a pulse-changing direction of the indicator histogram.

It has four configurable parameters:

  • Period - calculation period
  • Method - calculation method
  • Applied price - calculation price
  • Threshold - MA slope value threshold

Calculations:

SS = 100.0 * (MA - Anchor) / Anchor

where:

  • If Slope > Threshold и PrevTrend < 1
    Anchor = MA
    Trend = 1
    
  • Otherwise, if Slope < - Threshold и PrevTrend > 0
    Anchor = MA
    Trend = 0
    
  • Otherwise
    Anchor = PrevAnchor
    Trend = PrevTrend
    

Slope = (MA - PrevMA)*Point

MA = MA(Applied price, Period, Method)


Fig 1. Indicator Swing Shift with default settings


Fig. 2. Swing Shift and a comparative MA with the same settings

Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/21330

SAR_Oscillator SAR_Oscillator

Parabolic Stop And Reverse as an oscillator

Power Power

An indicator of bull/bear power.

MartingailExpert MartingailExpert

The EA uses Martingale. Initial entry by indicator iStochastic (Stochastic Oscillator).

VLM VLM

Intraday relative volumes indicator Voltest (VLM)