Page 2 of 2

Re: Dinapoli Preferred Stochastic

PostPosted: Sun Mar 19, 2017 6:12 am
by Apprentice
Try it now.
Alert version is available on second post.

Re: Dinapoli Preferred Stochastic

PostPosted: Fri Mar 24, 2017 1:32 am
by easytrading
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.

Re: Dinapoli Preferred Stochastic

PostPosted: Sat Mar 25, 2017 7:02 am
by Apprentice
1)
2.PNG

2)
1.PNG

Re: Dinapoli Preferred Stochastic

PostPosted: Sun Jan 13, 2019 12:22 am
by fortcentral
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

********************************************************************************************************

Re: Dinapoli Preferred Stochastic

PostPosted: Sun Jan 13, 2019 7:33 am
by Apprentice
Affirmative.
The specification is correct.

Re: Dinapoli Preferred Stochastic

PostPosted: Sun Jan 13, 2019 9:56 am
by fortcentral
Thank you for the quick response!