Attachments forums

List of attachments posted on this forum.


All files on forums: 161267

Re: Waddah Attar Indicators for MT4

Chintzki, Fri May 21, 2021 10:33 am

mrtools wrote: Thu Apr 29, 2021 5:25 am Slimmed it down a little and added arrows and alerts. Also added colored lines for maybe hopefully to recognize the slope a little better, since now basically this is now a macd slope type indicator.

mrtools this indicator (!wa averages nmc (alerts + arrows).mq4) seems to be working very well, thank you again for your hard work for this community. I don't know how you do it.

I do have a problem that I'm hoping you may be able to figure out an answer to though: I have found good success using "!wa averages nmc (alerts + arrows).mq4" TWICE in the SAME window, stacking them on each other with slightly different settings. It is a common problem I know, where the zero on two indicators does not align. I also know that the usual solution is to set the "Fixed minimum" and "Fixed maximum" to match on each indicator, and in this case it works fairly well.

The real problem is that when you set a "fixed" min/max and browse through different pairs/timeframes the indicator doesn't keep up because it seems that the calculation is directly based on ATR. I have found that if I set the "fixed minimum" and "fixed maximum" to align with the ATR of the current candle, it does a very good job of keeping everything in the right scale.

***

For example, right now on CADCHF the daily ATR(14) is giving me 53 pips(ish).

Fixed maximum = -0.053
Fixed minimum = -0.053

This makes the scale very close.

2nd example, right now on GBPNZD the daily ATR(14) is giving me 160(ish) pips.

Fixed maximum = 0.160
Fixed minimum = -0.160

Again, this makes the scale very close.

***

What I am asking is if it's possible to code the indicator so that the fixed min/max always scales with the CURRENT candles ATR (ATR period could be user set). This would pretty much fix the problem (maybe this fix would work for other indicators as well?). I don't know if MT4 would allow such a code to be written, but I thought I should ask.

Thanks again for everything. Either way I can make the indicator work; and it does work very well.
All files in topic