Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 8892
- Rating:
- Published:
- 2019.01.03 19:00
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Theory :
John Ehlers uses bandpass filter (originally published here : Bandpass Filter) to calculate what can be called a "market mode". The method used for that is to calculate an average of peaks and valleys and if the bandpass filter is above or bellow those levels, the market mode is determined with relative position to those levels
Usage :
You can use the color change as signals
![Market mode - discontinued signal lines](https://c.mql5.com/i/code/indicator.png)
Market mode - discontinued signal lines
![Heiken ashi - histogram](https://c.mql5.com/i/code/indicator.png)
Heiken ashi - histogram