Help- trend indicator edit

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

Help- trend indicator edit

Postby duzhaoping » Wed Nov 10, 2010 7:57 am

I have got a wonderful indicator named 'DZP Trend",it worked well in chinese stock market .I wonder it can work well in fx market yet.But i can't add it into FXCM Trading Station,please heip me
edit it in LUA format . :) The formula and function is as follow:
A:=(CLOSE-REF(CLOSE,M))/REF(CLOSE,M);
B:=(EMA(CLOSE,N)-REF(EMA(CLOSE,N),M))/REF(EMA(CLOSE,N),M);
DZP:(A-B)*100;

Who can help me? :(
Thanks all the time :)
duzhaoping
 
Posts: 7
Joined: Wed Nov 10, 2010 6:18 am


Re: Help- trend indicator edit

Postby duzhaoping » Thu Nov 11, 2010 2:37 am

Thank you very much! But the shape of the indicator is a continuous line rather than histograms. And the midline is 0. There are 2 parameters-N and M. The value range of N and M is both from 0 to 200. The default value of N is 20,of M is 22.The following example will show you more details.
Attachments
hh.png
DZP Trend--eur/usd in day
duzhaoping
 
Posts: 7
Joined: Wed Nov 10, 2010 6:18 am


Re: Help- trend indicator edit

Postby duzhaoping » Fri Nov 12, 2010 11:12 am

I have made a document by myself.but I can't load it in.And the system say"The technical indicator can not be loaded from the document."Can you help me to correct the mistakes and improve it?Thank you !
DZP Trend.lua
DZP Trend
(2.09 KiB) Downloaded 613 times
duzhaoping
 
Posts: 7
Joined: Wed Nov 10, 2010 6:18 am

Re: Help- trend indicator edit

Postby Apprentice » Fri Nov 12, 2010 12:49 pm

I have fix you Indicator.

DZP Trend.lua
(2.07 KiB) Downloaded 636 times


However, to warn you,
this implementation does not correspond to the original formula.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Help- trend indicator edit

Postby duzhaoping » Fri Nov 12, 2010 1:16 pm

Thank you for your patience. You've helped me a lot! I made a Excel to show you how it works.Thank you so much!
DZP Trend.xls
How it works
(46 KiB) Downloaded 613 times
duzhaoping
 
Posts: 7
Joined: Wed Nov 10, 2010 6:18 am


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 6 guests