Page 167 of 210

Re: Bollinger Bands type indicators for MT4

Posted: Sat Jul 01, 2023 12:37 am
by mrtools
charli wrote: Thu Jun 29, 2023 9:47 pm Dear Mrtools,is it possible to add option for different deviation for second BB? I am using different deviation of faster bb....Thanks a lot
Added different deviation option.

Re: Bollinger Bands type indicators for MT4

Posted: Sat Jul 08, 2023 6:09 am
by 256robertm
Banzai wrote: Thu Jun 23, 2022 5:12 am Those colored rectangles that you see on the main chart,
they're the squeezes.

You trade on the breakout of those boxes.

H1 is your trend.
Image
Squeeze? Does anyone know how red blue boxes are formed?

Re: Bollinger Bands type indicators for MT4

Posted: Sat Jul 08, 2023 1:03 pm
by sal
256robertm wrote: Sat Jul 08, 2023 6:09 am Squeeze? Does anyone know how red blue boxes are formed?
you can see arrow down where the price breakout the bottom channel

Re: Bollinger Bands type indicators for MT4

Posted: Sat Jul 08, 2023 1:18 pm
by 256robertm
sal wrote: Sat Jul 08, 2023 1:03 pm you can see arrow down where the price breakout the bottom channel
I know i see the arrows..... i was wondering how or what are the parameters for the boxes

Re: Bollinger Bands type indicators for MT4

Posted: Sun Jul 09, 2023 3:17 am
by sylvester21
yoake wrote: Fri Dec 23, 2022 4:01 pm Motion To Attraction Channel (MTA Channel)

Here you go.

I made this before.
My coding skills are not yet up to par.
If you want, you can modify it.

Sorry for poor English.
Merry Christmas

Original description by Alexgrover

Introduction

Channels are used a lot on technical-analysis, however most of the them rely on adding/subtracting a volatility indicator to a central tendency indicator, sometimes the central tendency indicator can even be replaced by pure price. A great channel who does not rely on this kind of architecture is the Donchian channels or the quartiles bands. Here i propose a channel similar to the one made by Richard Donchian with some additional abilities.

The Channels

In my indicator, Motion To Attraction mean that the movement of an object a attract an object b, but we can resume this approach by saying that the longer a trend period is, the smaller the distance between each channels, for example if the price create a new highest then the lowest will move toward this new highest, each time coming closer. The philosophy behind this is that the longer a trend is the more probable it is that she will end.

The code reflects it this way :

  • here the parameter controlling the channel A (upper)
  • c = change(b) ? nz (c) + alpha : change(a) ? 0 : nz (c)
  • this is traduced by : if channel b move then the parameter c become greater, if channel a move then reset the parameter, the parameter d do the same.
  • c is used to move the channel A, when c < 1 A is closer to the highest, when c = 1 A is in a central tendency point, when c > 1 A is closer to the lowest.

Slaving the Movement

It is possible to have a better control over the channels, this is done by making c and d always equal or lower than 1. Of course it could be another max value selected by the user.

In order to do that add c1 and d1 as parameter with c1 = c > 1 ? 1 : c, same with d1 but replace c by d.

Its safer to do this but i prefer how the channels act the other way, i will consider implementing this option in the future.

Conclusion

This channel indicator does not rely on past data thanks to recursion. The alpha variable at the start can also be adaptive, this let you make the channels adaptive even if such idea can add non desired results. Low length values can create effects where the lower channel can be greater than the higher one, this can be fixed directly in the code or using the method highlighted in the Slaving the Movement part.
Image

Image

Another fantastic hidden gem by Alex Grover and thanks to yoake for sharing the mt4 version

May I seek the master coders help to put in On/Off button for this?
It is a great alternative for Donchian

Re: Bollinger Bands type indicators for MT4

Posted: Sun Jul 09, 2023 4:24 am
by kvak
sylvester21 wrote: Sun Jul 09, 2023 3:17 am Another fantastic hidden gem by Alex Grover and thanks to yoake for sharing the mt4 version

May I seek the master coders help to put in On/Off button for this?
It is a great alternative for Donchian
What about THIS?

Re: Bollinger Bands type indicators for MT4

Posted: Sun Jul 09, 2023 12:42 pm
by sylvester21
kvak wrote: Sun Jul 09, 2023 4:24 am What about THIS?
Hi Kvak, Thank you!

Re: Bollinger Bands type indicators for MT4

Posted: Mon Jul 17, 2023 3:17 am
by maxus182
yoake wrote: Fri Dec 23, 2022 4:01 pm Motion To Attraction Channel (MTA Channel)

Here you go.

I made this before.
My coding skills are not yet up to par.
If you want, you can modify it.

Sorry for poor English.
Merry Christmas

Original description by Alexgrover

Introduction

Channels are used a lot on technical-analysis, however most of the them rely on adding/subtracting a volatility indicator to a central tendency indicator, sometimes the central tendency indicator can even be replaced by pure price. A great channel who does not rely on this kind of architecture is the Donchian channels or the quartiles bands. Here i propose a channel similar to the one made by Richard Donchian with some additional abilities.

The Channels

In my indicator, Motion To Attraction mean that the movement of an object a attract an object b, but we can resume this approach by saying that the longer a trend period is, the smaller the distance between each channels, for example if the price create a new highest then the lowest will move toward this new highest, each time coming closer. The philosophy behind this is that the longer a trend is the more probable it is that she will end.

The code reflects it this way :

  • here the parameter controlling the channel A (upper)
  • c = change(b) ? nz (c) + alpha : change(a) ? 0 : nz (c)
  • this is traduced by : if channel b move then the parameter c become greater, if channel a move then reset the parameter, the parameter d do the same.
  • c is used to move the channel A, when c < 1 A is closer to the highest, when c = 1 A is in a central tendency point, when c > 1 A is closer to the lowest.

Slaving the Movement

It is possible to have a better control over the channels, this is done by making c and d always equal or lower than 1. Of course it could be another max value selected by the user.

In order to do that add c1 and d1 as parameter with c1 = c > 1 ? 1 : c, same with d1 but replace c by d.

Its safer to do this but i prefer how the channels act the other way, i will consider implementing this option in the future.

Conclusion

This channel indicator does not rely on past data thanks to recursion. The alpha variable at the start can also be adaptive, this let you make the channels adaptive even if such idea can add non desired results. Low length values can create effects where the lower channel can be greater than the higher one, this can be fixed directly in the code or using the method highlighted in the Slaving the Movement part.
Image

Image
Hello sir yoake, thank you for this fantastic indicator! Is it possible to add an option to draw bands only on the candle close?

Re: Bollinger Bands type indicators for MT4

Posted: Sat Jul 29, 2023 1:56 am
by Exequiel Cabrera
mrtools wrote: Sat Jul 01, 2023 12:37 am Added different deviation option.
You could put the option in the parameters of the price changes in this indicator about the rsi and the band

Re: Bollinger Bands type indicators for MT4

Posted: Sat Jul 29, 2023 4:31 am
by mrtools
Exequiel Cabrera wrote: Sat Jul 29, 2023 1:56 am You could put the option in the parameters of the price changes in this indicator about the rsi and the band
Added price options to the rsi and for the bands could only add ma options.