Stockhastic fast or slow

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Gucci
Newbie
Newbie
Posts: 22
Joined: Mon Jul 27, 2015 12:00 am

Stockhastic fast or slow

Post by Gucci » Wed Aug 26, 2015 6:35 pm

If I understand correctly Tchart at this stage only support a fast Stockhastic oscillator. Is their any way to support slow Stockhastic also.

This below is a simple extract from the internet to explain the diffrence.

%K Time Periods. Enter the number of time periods used in the stochastic calculation.

%K Slowing. Enter the number of time periods used in the internal smoothing of the %K value. A value of 1 is considered a fast stochastic; the default value of 3 is considered a slow stochastic

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Stockhastic fast or slow

Post by Yeray » Thu Aug 27, 2015 2:57 pm

Hello,

Isn't it the Period? Note you can change the period of the TStochasticFunction by:

Code: Select all

TeeFunction1.Period:=1;
Or:

Code: Select all

TeeFunction1.Period:=3;
Or:

Code: Select all

TeeFunction1.Period:=10;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Gucci
Newbie
Newbie
Posts: 22
Joined: Mon Jul 27, 2015 12:00 am

Re: Stockhastic fast or slow

Post by Gucci » Thu Aug 27, 2015 4:09 pm

Hi Yeray,

Jip I already change the period, but with a stockhastic function you get a slowing period also.
Please see this website : http://ta.mql4.com/indicators/oscillators/stochastic

Code: Select all

   stockHastic := TStochasticFunction.Create(nil);

   with chart1 do
   begin
      tmpStockhastic := TLineSeries.Create(self);
      addSeries(tmpStockhastic);
      tmpStockhastic.SetFunction(stockHastic);
      tmpStockhastic.DataSources.Clear;
      tmpStockhastic.DataSources.Add( candleSeries );
      stockHastic.Period :=StrToInt(edtStockhasticPeriod.Text);
      tmpAxis:=chart1.CustomAxes.Add as TChartAxis;

      tmpStockhastic.CustomVertAxis:=tmpAxis;
      tmpAxis.Axis.Color:=Color;

      ChartTool1 := TAnnotationTool.Create(nil);
      ChartTool1.Text:=FormatFloat('#0.00',(tmpStockhastic.YValue[tmpStockhastic.YValues.Count-1]));
      ChartTool1.Shape.Transparent:=True;
      ChartTool1.Shape.Font.Color:=clRed;
      chart1.Tools.Add(ChartTool1);

      calculateAxesAnnotations;
    end;
I can also if needed attach a screen shot to show the difference between my application stockhastic and a 3rd party.

I think TStochasticFunction miss a slowing period property.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Stockhastic fast or slow

Post by Yeray » Fri Aug 28, 2015 10:48 am

Hello,

I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1284
Gucci wrote:I can also if needed attach a screen shot to show the difference between my application stockhastic and a 3rd party.
Yes, a comparison would be helpful.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Gucci
Newbie
Newbie
Posts: 22
Joined: Mon Jul 27, 2015 12:00 am

Re: Stockhastic fast or slow

Post by Gucci » Fri Aug 28, 2015 10:59 am

Hi Yeray,

Any work around in the mean time maybe ? Or will it be better if I wright my own Stockhastic function ?


Help will be appreciated.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Stockhastic fast or slow

Post by Yeray » Fri Aug 28, 2015 12:01 pm

Hello,

I'm afraid I can't tell you a date for it to be implemented.
You can add your mail to the CC list in the ticket to be automatically notified when an update arrives.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Gucci
Newbie
Newbie
Posts: 22
Joined: Mon Jul 27, 2015 12:00 am

Re: Stockhastic fast or slow

Post by Gucci » Fri Aug 28, 2015 12:20 pm

Hi Yeray,

What is your direct email ? I need to ask you something off the chart.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Stockhastic fast or slow

Post by Yeray » Fri Aug 28, 2015 2:37 pm

Hello,

I've just sent a mail to the account you have registered in this forum.
However, note the options to get support are described here.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply