Topics
custom Parameters

completed cTrader Automate

Suggestions
11 Feb 2014, 11:33
 141
 3299
 14
08 Feb 2014, 00:47
 3227
 7
Replies

giovi61
24 Jun 2014, 13:42

Thank you, now it works


@giovi61

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
11 Mar 2014, 11:24

RE:

Spotware said:

No, it is not possible.

We have plans to implement it in the future.

thanks


@giovi61

giovi61
10 Feb 2014, 13:16

RESOLVED!!!

Thanks I solved, the path was as follows:
C: \ Users \ John \ AppData \ Roaming \ FxPro-cAlgo \ Settings, I deleted the *. Xtr and now it works!!!


@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
10 Feb 2014, 11:39

I'm stuck! anyone can give me some solution? please!!

I can not write the code or test it.

I tried to uninstall the software and reinstall it, but the problem is always present.
If I run the robot from cTrade this works, but I can not alter the code


@giovi61

giovi61
08 Feb 2014, 20:15 ( Updated at: 21 Dec 2023, 09:20 )

Thi is the error message


@giovi61