Page 1 of 1

Stockhastic fast or slow

Posted: Wed Aug 26, 2015 6:35 pm
by 16475102
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

Re: Stockhastic fast or slow

Posted: Thu Aug 27, 2015 2:57 pm
by yeray
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;

Re: Stockhastic fast or slow

Posted: Thu Aug 27, 2015 4:09 pm
by 16475102
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.

Re: Stockhastic fast or slow

Posted: Fri Aug 28, 2015 10:48 am
by yeray
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.

Re: Stockhastic fast or slow

Posted: Fri Aug 28, 2015 10:59 am
by 16475102
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.

Re: Stockhastic fast or slow

Posted: Fri Aug 28, 2015 12:01 pm
by yeray
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.

Re: Stockhastic fast or slow

Posted: Fri Aug 28, 2015 12:20 pm
by 16475102
Hi Yeray,

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

Re: Stockhastic fast or slow

Posted: Fri Aug 28, 2015 2:37 pm
by yeray
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.