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:
- 17008
- Rating:
- Published:
- 2019.02.20 10:13
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Theory :
There are different ways how traders are trying to determine if the market is trending or consolidating. One of the methods used is to compare standard deviation to average true range.
- when standard deviation value is greater than average true range, then the market is supposed to be trending
- when standard deviation value is less than average true range, then the market is supposed to be consolidating (ranging)
This indicator is doing that.When the value of it is zero, then the market is in a "squeeze" mode (consolidating). When the value is different from 0, then it compares median price to average close and if it is above the average, it displays it as a trend up, and if it is bellow the average it displays it as a trend down (median is used as a "safer" choice to avoid too much signals)
Usage :
You can use color (or lack of color) as signals
![RSI swings](https://c.mql5.com/i/code/indicator.png)
RSI swings
![Aroon oscillator - multi time frame version](https://c.mql5.com/i/code/indicator.png)
Aroon oscillator - multi time frame version
![Squeeze - on chart](https://c.mql5.com/i/code/indicator.png)
Squeeze - on chart candles or bars
![Bollinger bands - squeeze](https://c.mql5.com/i/code/indicator.png)
Bollinger bands - squeeze