DIX Strategy Requested!

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

DIX Strategy Requested!

Postby mariqmarzuki » Thu Jan 02, 2020 3:46 pm

hello Apprentice....I hope to have a Disparity Index Strategy with buy and sell signals over a zero line with MA period and different MAs as adjustable inputs, thanks!
mariqmarzuki
 
Posts: 4
Joined: Thu Jan 02, 2020 3:41 pm

Re: DIX Strategy Requested!

Postby Apprentice » Fri Jan 03, 2020 4:01 am

Something like this?
viewtopic.php?f=31&t=63393
If NOT, can you please provide pseudo-code for your strategy?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 23838
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: DIX Strategy Requested!

Postby mariqmarzuki » Mon Jan 06, 2020 11:46 am

//@version=4
study("DIX", shorttitle="DIX")

length = input(title="Length", type=input.integer, minval=1, defval=14)
src = input(title="Source", type=input.source, defval=close)

di = 100 * (src - sma(src, length)) / sma(src, length)

diColor = di >= 0 ? #42a5f5 : #ef5350
plot(di, title="Disparity Index", linewidth=1, color=diColor, transp=0)

hline(0, title="Zero Level", linestyle=hline.style_solid, color=#434651)

above is my code from tradingview, was hoping I can select a different MA from options like EMA WMA TRIMA KAMA MEMA VIDYA if possible thanks!
mariqmarzuki
 
Posts: 4
Joined: Thu Jan 02, 2020 3:41 pm

Re: DIX Strategy Requested!

Postby Apprentice » Tue Jan 07, 2020 8:32 am

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

Re: DIX Strategy Requested!

Postby mariqmarzuki » Tue Jan 07, 2020 8:44 am

lest I forget sir could the team also make price source Open High Low Close HL2 HLC3 OHLC4 as options for the selected MA period? thanks!
mariqmarzuki
 
Posts: 4
Joined: Thu Jan 02, 2020 3:41 pm

Re: DIX Strategy Requested!

Postby Apprentice » Wed Jan 08, 2020 6:52 am

Try this version.
viewtopic.php?f=17&t=69298
Capture.PNG

Some price options.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 23838
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: DIX Strategy Requested!

Postby mariqmarzuki » Wed Jan 08, 2020 12:23 pm

so it's finally done? or still under development sir?
mariqmarzuki
 
Posts: 4
Joined: Thu Jan 02, 2020 3:41 pm

Re: DIX Strategy Requested!

Postby Apprentice » Thu Jan 09, 2020 4:03 am

It is completed and available for download.
viewtopic.php?f=17&t=69298
Median Price is calculated as: (High + Low ) / 2
Typical Price is calculated as: (High + Low + Close) / 3
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 23838
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Google [Bot] and 8 guests