Topics
Replies
giovi61
23 Jun 2014, 17:03
RE:
Spotware said:
You can create Stochastic Oscillator for different symbol by passing market series object. Example:
var eurUsd = MarketData.GetSeries("EURUSD", TimeFrame.Minute10); var eurGbp = MarketData.GetSeries("EURGBP", TimeFrame.Minute10); var stochasticEurUsd = Indicators.StochasticOscillator(eurUsd, 8, 3, 9, MovingAverageType.Simple); var stochasticEurGbp = Indicators.StochasticOscillator(eurGbp, 8, 3, 9, MovingAverageType.Simple);
Thanks this works, but I have another question:
I realize an indicator, for example "myIndicator" that has as parameters Period and Limit.
I want to create a new indicator that refers to this in this way:
// # reference: myIndicator.algo ... ... var = _myInd Indicators.GetIndicator <myIndicator> (Period, Limit);
Up to here no problem. But if I want to specify a symbol to use with the indicator reported in the following way:
var = EURUSD MarketData.GetSeries ("EURUSD", TimeFrame.Minute10); var = _myInd Indicators.GetIndicator <myIndicator> (EURUSD, Period, Limit);
to do this I need to create an instance of my indicator (myIndicator) based on the symbol. But how should I declare the constructor of myIndicator to do this?
@giovi61
giovi61
10 Feb 2014, 13:12
RE:
Spotware said:
It seems that your settings file is corrupted. Please remove settings file which is located:
C:\Users\USER_NAME\AppData\Roaming\BROKER_NAME-cAlgo\Settings\
I found the path C: \Users\John\AppData\Roaming\cTrader\settings.xtr and removed the file settings.xtr , but the problem has not been solved...
@giovi61
giovi61
10 Feb 2014, 13:12
RE:
Spotware said:
It seems that your settings file is corrupted. Please remove settings file which is located:
C:\Users\USER_NAME\AppData\Roaming\BROKER_NAME-cAlgo\Settings\
I found the path C: \Users\John\AppData\Roaming\cTrader\settings.xtr and removed the file settings.xtr , but the problem has not been solved...
@giovi61
giovi61
24 Jun 2014, 13:42
Thank you, now it works
@giovi61