Timed Moving Averages

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Re: Timed Moving Averages

Postby Apprentice » Mon May 21, 2018 5:33 am

Can you provide web reference for zero-lag MA envelope?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Timed Moving Averages

Postby ForexGuy » Mon May 21, 2018 6:24 am

https://www.mesasoftware.com/papers/ZeroLag.pdf - maybe this could be of help

I also have some formula and the MT4 code for the NonLag MA (a modified non lag MACD) -- attached--which I hope it can be of help to you:
Formula as found it on the internet:
EMA = K * ( 2 * PRICE - PRICE.X) + (1 - K) * EMA.1
where...
K = 2 / (n + 1)
n = Period
x = lag = (n - 1) / 2

The attached is a NonLag MACD which I modified to show only a NonLagMA on price chart and which I use in MT4 but I need it for ticks in Marketscope.
Attachments
NonLag.txt
(3.68 KiB) Downloaded 845 times
ForexGuy
 
Posts: 27
Joined: Thu Apr 20, 2017 12:22 pm

Re: Timed Moving Averages

Postby ForexGuy » Mon May 21, 2018 6:36 am

P.S. The provided formulas and code are for simple NonLagMA, you need to add the envelopes. Thanks a lot for all your interest and help!
ForexGuy
 
Posts: 27
Joined: Thu Apr 20, 2017 12:22 pm

Re: Timed Moving Averages

Postby Apprentice » Tue May 22, 2018 3:59 am

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

Re: Timed Moving Averages

Postby ForexGuy » Tue May 22, 2018 7:39 am

Thank you very much! You are always very prompt in your replies and work!
ForexGuy
 
Posts: 27
Joined: Thu Apr 20, 2017 12:22 pm

Re: Timed Moving Averages

Postby Apprentice » Thu May 31, 2018 3:20 am

ZeroLag.lua
(2.89 KiB) Downloaded 748 times

Tick Timed ZeroLag Envelope.lua
(6.09 KiB) Downloaded 730 times

Try this version.
Was written by a colleague.
I'm on vacation.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Timed Moving Averages

Postby ForexGuy » Thu May 31, 2018 7:02 am

Hello Apprentice, first I want to wish you a nice vacation and I'm grateful you took time to post the indicators.
Unfortunately they are not quite what I expected as they differ greatly from the mq4 indicator I posted.
Normally, the zerolag MA should be faster and follow price closely than the normal MA. The zerolag and envelope posted above by you are not much different than a usual MA/envelope.
Maybe after your return you could take a look!
Thanks again and waiting for your return.
ForexGuy
 
Posts: 27
Joined: Thu Apr 20, 2017 12:22 pm

Re: Timed Moving Averages

Postby ForexGuy » Fri Jun 01, 2018 2:17 am

Hello Apprentice and thank you for taking time during your vacation to post the indicators.
Unfortunately I have tried them but they are not quite in order. My mq4 indicator that I posted is much faster than a regular moving average while the indis posted above are almost the same as a moving average.
Maybe after coming from your vacation you could take a look at the zero lag MA.
Thanks and have a nice time on your vacation!
ForexGuy
 
Posts: 27
Joined: Thu Apr 20, 2017 12:22 pm

Re: Timed Moving Averages

Postby Apprentice » Fri Jun 01, 2018 7:02 am

Zerolag.lua was written based on your formula.
Code: Select all
EMA = K * ( 2 * PRICE - PRICE.X) + (1 - K) * EMA.1
where...
K = 2 / (n + 1)
n = Period
x = lag = (n - 1) / 2
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Timed Moving Averages

Postby Apprentice » Fri Jun 01, 2018 7:07 am

Tick Timed ZeroLag Envelope.lua
(5.85 KiB) Downloaded 760 times

Tick Timed ZeroLag Envelope.lua was modified.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 47 guests