Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
10423
Rating:
(17)
Published:
2018.12.28 12:59
Updated:
2019.01.17 11:29
GannSwing.mq5 (12.44 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Gann Swing is similar to ZigZag. It allows detecting market patterns and is calculated using the Gann trend detection method.

The indicator has no input parameters.

  1. Two consecutive Higher High of the last two candles indicate Upswing.
  2. Two consecutive lowering Lows of the last two candles indicate a downswing.
  3. If the next bar has a higher high and lower low (or same low) when compared to the previous bar, then the indicator line goes up connecting the high of the next bar.
  4. If the next bar has a lower or equal High and a lower Low as compared to the preceding bar, then the indicator line goes lower, joining the Low of the next bar.
  5. If the next bar is an inside bar (lower high and higher low), the bar is skipped before the next one appears.
  6. If the next bar is an external bar (a higher High and a lower Low), then the indicator line will connect to the High of the external bar, provided that the bar following the external bar is lower, OR the indicator line will connect to the Low of the external bar, provided that the bar following the external bar is higher.
  7. If the price has fixed above the previous peak, this means the likely start of an uptrend.
  8. If the price has fixed below the previous bottom, it means that a downtrend is likely to start.



Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/22793

Rubicons_CCI_Cross Rubicons_CCI_Cross

Indicator Rubicons CCI Cross

ComparePrices ComparePrices

Indicator Compare Prices

Fluctuate Fluctuate

A swing-based Expert Advisor: The EA sets a pending stop order with an increased lot size and in the opposite direction.

Volatility_Ratio2 Volatility_Ratio2

Indicator Volatility Ratio2