Volatility MA bands

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Volatility MA bands

Postby clemmo » Fri Jun 28, 2019 5:38 am

Requesting a pair of symmetrical bands that function similar to the TMA envelopes attached here but instead of TMA using the Volatility MA that has previously been posted here.

Code for TMA bands attached.
Code for MA volatility (not working?) attached.

Regards,
Clemmo (moriarty67)
Attachments
VolatilityMA.mq4
(2.26 KiB) Downloaded 89 times
TMA_centered envelope_mtf+alerts+price labels nmc.mq4
(8.83 KiB) Downloaded 95 times
clemmo
 
Posts: 10
Joined: Thu Jun 27, 2019 10:14 am

Re: Volatility MA bands

Postby Apprentice » Sun Jun 30, 2019 6:01 pm

Your request is added to the development list under Id Number 4757
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 23173
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Volatility MA bands

Postby Apprentice » Wed Jul 03, 2019 1:42 pm

VolatilityMA v2.mq4
(3.73 KiB) Downloaded 97 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 23173
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Volatility MA bands

Postby clemmo » Wed Jul 03, 2019 2:24 pm

Thank you! I will.
clemmo
 
Posts: 10
Joined: Thu Jun 27, 2019 10:14 am

Re: Volatility MA bands

Postby clemmo » Wed Jul 03, 2019 2:45 pm

The results are interesting, don't you think? Especially after reducing the deviation.

Is it possible to have the result displayed in chart window? I tried to set #property indicator_chart_window but it seems there is more to it.
Attachments
gbpnzd-m15-tradeview-ltd[1].png
clemmo
 
Posts: 10
Joined: Thu Jun 27, 2019 10:14 am

Re: Volatility MA bands

Postby clemmo » Wed Jul 03, 2019 4:56 pm

Please disregard my earlier comments. I have it working now.

#property indicator_chart_window does work and to get it to show up properly on other instruments it is merely a matter of tuning the values. Sometimes to extreme numbers, but that's OK.

Thanks for your efforts; you are a hero and fxCodeBase is a very good source for learning MQL. :)
Attachments
spxm-h1-tradeview-ltd[1].png
clemmo
 
Posts: 10
Joined: Thu Jun 27, 2019 10:14 am

Re: Volatility MA bands

Postby Gilles » Tue Oct 15, 2019 2:21 pm

Hi Apprentice,

Please a TMA bands LUA indicator and strategy.

Rules are :
if PRICE > TMA[period] then BUY and Limit is UPER TMA band.
if PRICE < TMA[period] then SELL and Limit is LOWER TMA band.

See you soon.
Gilles
 
Posts: 43
Joined: Tue Jul 31, 2018 8:28 am
Location: France

Re: Volatility MA bands

Postby Apprentice » Wed Oct 16, 2019 8:33 am

Your request is added to the development list.
Development reference 202.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 23173
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Volatility MA bands

Postby Apprentice » Thu Oct 24, 2019 6:11 am

Pre-installed TMA doesn't have bands, so I ignored that requirement
TMA_Strategy.lua
(128.95 KiB) Downloaded 23 times


Can you define the band calculation?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 23173
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Volatility MA bands

Postby Gilles » Thu Oct 24, 2019 7:01 am

Hi, Apprentice !

We can try this :

Upper[period] = TMA[period] + ( 2 * ATR.DATA[period] )
Lower[period] = TMA[period] - ( 2 * ATR.DATA[period] )

See you soon !
Gilles
 
Posts: 43
Joined: Tue Jul 31, 2018 8:28 am
Location: France

Next

Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Bing [Bot] and 7 guests