I saw an indicator on Tradingview the other day. I want to keep my MT4, because it is better in so many ways, so I had to programme the indicator for MT4.
The biggest problem we have as traders are - when is the chart ranging and when is it trending. There are many ways to find the information, but I don't have the perfect way. I have allways thought, that the Bollinger Indicator is one of the best indicators for the purpose, but it can be quit messy and it can be difficult to sort out the view in a glance. So I made this indicator which I think is smart. Don't know if it exists for MT4 allready - probably does, I just haven't come across it.
It is very simple. The indicator looks x bars back using the Bollinger formula. It meassure the distance between upper and lower band. This distance is defined by John Bollinger as a meassure of trending conditions. If the distance is big, then the chart is trending. If it is small, then the chart is in a range.
So my indicator sums the distance between the two bands at x bars behind and the divide the result by the number of bars. This gives you a simple average of the condition.
I only finished the coding right now and hasn't really played around with the indicator. But as allways when you use an indicator, it is important to play with the settings. There are only one setting for now. That is the number of bars the indicator shall operate. MA_Length. I find that if you set the value to twice the bars in the Bollinger indicator, then you have less noise. I will show the indicator in the next thread. Have a little patience please.
Keep in mind, that this indicator is lacking. It cannot tell you for certain anything about the future. But I am a fan of the saying "whatever the chart is doing - it want to continue doing just that".
Go to post #30 for the latest version. No, there is no MT5 and no you cannot have the code for version 6, because it contain a lot of other code which work with my robots.
Update September 2024: This tool have now become one of my main tools in my setups.
The biggest problem we have as traders are - when is the chart ranging and when is it trending. There are many ways to find the information, but I don't have the perfect way. I have allways thought, that the Bollinger Indicator is one of the best indicators for the purpose, but it can be quit messy and it can be difficult to sort out the view in a glance. So I made this indicator which I think is smart. Don't know if it exists for MT4 allready - probably does, I just haven't come across it.
It is very simple. The indicator looks x bars back using the Bollinger formula. It meassure the distance between upper and lower band. This distance is defined by John Bollinger as a meassure of trending conditions. If the distance is big, then the chart is trending. If it is small, then the chart is in a range.
So my indicator sums the distance between the two bands at x bars behind and the divide the result by the number of bars. This gives you a simple average of the condition.
I only finished the coding right now and hasn't really played around with the indicator. But as allways when you use an indicator, it is important to play with the settings. There are only one setting for now. That is the number of bars the indicator shall operate. MA_Length. I find that if you set the value to twice the bars in the Bollinger indicator, then you have less noise. I will show the indicator in the next thread. Have a little patience please.
Keep in mind, that this indicator is lacking. It cannot tell you for certain anything about the future. But I am a fan of the saying "whatever the chart is doing - it want to continue doing just that".
Go to post #30 for the latest version. No, there is no MT5 and no you cannot have the code for version 6, because it contain a lot of other code which work with my robots.
Update September 2024: This tool have now become one of my main tools in my setups.
Read post #1 !! Then read it again 10 more times before you ask.