Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Swing_Shift - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

Swing_Shift - indicator for MetaTrader 5

Swing_Shift - indicator for MetaTrader 5

Oscillator Swing Shift displays MA slope values ​​that exceed a predefined threshold and changes in the direction of the moving average movement as the direction of pulse changes in the indicator histogram.

It has four configurable parameters:

SS = 100.0 * (MA - Anchor) / Anchor

anchor=MA
trend = 1
  • Otherwise, if slope < - threshold и PrevTrend > 0
    anchor=MA
    trend = 0
  • otherwise
    Anchor point = previous anchor point trend = previous trend

Slope = (MA - PrevMA)*points

MA = MA(apply price, period, method)

Swing_Shift - indicator for MetaTrader 5

Figure 1. Indicator swing displacement at default settings

Swing_Shift - indicator for MetaTrader 5

Figure 2. Swing Shift and comparison MA with the same settings


Attachment download

📎 swing_shift.mq5 (10.44 KB)

Source: MQL5 #21330

Verification code Refresh