Dinapoli Preferred Stochastic

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: Dinapoli Preferred Stochastic

Postby Apprentice » Sun Mar 19, 2017 6:12 am

Try it now.
Alert version is available on second post.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Dinapoli Preferred Stochastic

Postby easytrading » Fri Mar 24, 2017 1:32 am

Hello Apprentice :
for the Tick Based version ( second indicator ) :

1 ) could you please, add line style & width .

2 ) it is showing more than one alert when the K/D line cross (when not to show the other crossing but only show K/D crossing Alert). is it possible to fix that ? with many thanks in advance.
easytrading
FXCodeBase: Initiate
 
Posts: 154
Joined: Thu Sep 11, 2014 5:23 pm


Re: Dinapoli Preferred Stochastic

Postby fortcentral » Sun Jan 13, 2019 12:22 am

Dear Apprentice,
I am not a programmer and since the formula being used for this indicator is not readily apparent, could you please confirm that the description below is what is being calculated. I have based the text below on my understanding of what Joe Dinapoli has recommended in his publicly available material. I ran a check on indicator generated data vs manual calculation using the same price feed and the results are close but a little off in accuracy. Appreciate your advice and help.

Regards,
fortcentral

--------------------------------------------------------------------------------
Indicator: Dinapoli Preferred (Slow) Stochastic
This is a Slow Stochastic Calculation which uses Modified Moving Average (Kaufman New Commodity Trading -- "Average-off Method") to dampen the end-off impact of using the Simple Moving Average Calculation.

------------------------------------------------------------
viewtopic.php?f=17&t=1874
------------------------------------------------------------

--> Price source : bars

Calculation for Modified Moving Average (MMAV)
MMAV(time) = MMAV(time-1) + [P(time)-MMAV(time-1)]/(period)

Note:
1) MMAV(time) is the current time-period Modified Moving Average value
2) MMAV (time-1) is the previous time-period Modified Moving Average value
3) P(time) is the current time-period closing price of bar
4) "n.period" is the total number of bars used in the calculation, i.e the lookback period
5) The starting point of the MMAV calculation is the simple average of the number of "periods" selected for the calculation. The substitution of the simple moving average value for the oldest data item tends to smooth the results even more than a simple moving average and dampens the end-off impact (P. Kaufman, Trading Systems and Methods)

--> User Input Parameters:
1) %Kfast(kf.n.period) - lookback (bars) period for %Kfast calculation
2) %Kslow(ks.n.period) - period for the %Kfast(time) MMAV calculation to produce the %Kslow(time) line
3) %Dslow(ds.n.period) - period for the %Kslow(time) MMAV calculation to produce the %Dslow(time) line
4) Option for choosing line thickness, style and colour for the "%Kslow" and the "%Dslow" lines


Stochastic Calculation:

Fast Stochastic:
%Kfast(time) = 100*{[P(time)-minLow(kf.n.period)]/[maxHigh(kf.n.period)-minLow(kf.n.period)]}
%Dfast(time) = "ks.n.period" MMAV of %Kfast values --> uses MMAV formula above

Note:
1) P(time) is the current time-period closing price of bar
2) %Kfast(time) is the %Kfast calculation for the current time-period
2) maxHigh(kf.n.period) is the highest-high price for the selected "kf.n.period" lookback
3) minLow(kf.n.period) is the lowest-low price for the selected "kf.n.period" lookback
4) %Dfast(time) is the current time-period %Dfast calculation using the MMAV formula above


****************************************************************************************************
--> The Dinapoli Preferred (Slow) Stochastic Calculation
%Kslow(time) = %Dfast(time) -> from above
%Dslow(time) = "ds.n.period" MMAV of %Kslow(time)

Note:
1) %Kslow(time) is the current time-period value for the %Kslow line [same as %Dfast(time)]
2) %Dslow(time) is the current time-period value for the %Dslow line
3) The %Kslow and %Dslow lines are displayed in a panel at the bottom of the price chart

********************************************************************************************************
fortcentral
 
Posts: 47
Joined: Wed Oct 17, 2018 9:34 am

Re: Dinapoli Preferred Stochastic

Postby Apprentice » Sun Jan 13, 2019 7:33 am

Affirmative.
The specification is correct.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Dinapoli Preferred Stochastic

Postby fortcentral » Sun Jan 13, 2019 9:56 am

Thank you for the quick response!
fortcentral
 
Posts: 47
Joined: Wed Oct 17, 2018 9:34 am

Previous

Return to Custom Indicators

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 50 guests