How to use the stochastics ?
Created at 04 Mar 2013, 13:40
How to use the stochastics ?
04 Mar 2013, 13:40
How can i use the Stochastics in a robot ?
I declare it like this
private StochasticOscillator Stoch; Stoch = Indicators.StochasticOscillator( 9, 3, 9, MovingAverageType.Exponential);
But after that how can i access to Stoch's signal and main lines ?
Replies
crank
27 Dec 2014, 17:26
( Updated at: 21 Dec 2023, 09:20 )
RE:
How do I use PercentK for two different symbols?
You may access it as follows:
Stoch.PercentK.LastValue; // Last value of Main Stoch.PercentD.LastValue; // Last value of Signal // or int index = MarketSeries.Close.Count - 1; // index of last bar Stoch.PercentK[index - 1]; // Previous to last value of Main Stoch.PercentD[index - 1]; // Previous to last value of Signal
The instellisense will populate a list of all properties upot pressing the period (dot):
@crank
cAlgo_Fanatic
04 Mar 2013, 15:06 ( Updated at: 21 Dec 2023, 09:20 )
You may access it as follows:
The instellisense will populate a list of all properties upot pressing the period (dot):
@cAlgo_Fanatic