how pass all parameter from custom indicator to ea? - page 3

To add comments, please log in or register
hardy
221
hardy  

viffer..

can i load the indicator at below chart before ea start to process?

if in real test, maybe can.. because can drag directly the indicator to chart and turn on the ea..

but in backtest, maybe not or yes..

Viffer
614
Viffer  

Assuming visual mode...get the chart the way you want it and save the template as "tester". From now on when you open a visual backtest it will use this template.

V

hardy
221
hardy  

viffer,it seems not problem on open position even have that error.. and now the position opened based of condition 99%..

qjol, i am using tf H1.. and H4 can open position normally too.. so that error maybe cause by indicator that not put to chart that viffer said..

if test in demo account, maybe that problem will dissapear..

ok.. thx very much qjol that have many help in coding..thx..

and thx viffer too...

hardy
221
hardy  

o ya, why backtest using this ea is take long time to finish... i have select skip to, but still need long time.. i am testing in h1 from jan 2010- july 2010 need arround 1-2 hour for complete..

so how to make it quickly like ea using macd only, can finish in 30 seconds?

is that the problem from passing indicator parameter to ea, the process?

if yes, i must insert all code of formula indicator to ea. is like that?

thx..

William Roeder
19988
William Roeder  

hardyyanto:

so how to make it quickly like ea using macd only, can finish in 30 seconds?

is that the problem from passing indicator parameter to ea, the process?

if yes, i must insert all code of formula indicator to ea. is like that?

Has nothing to do with the iCustom call. Probably the indicator redraws every bar and every object each tick. MACD redraws just the last bar.
hardy
221
hardy  

ooo.. so like that..

ok.. thx..

jimscott77
12
jimscott77  

Is there a way to dynamically construct an iCustom() indicator from global default values?

For Example:

string      IndicatorName = "HalfTrend-1.02";
string      IndicatorPath = "Testing\\";  // "Testing\\mypath\\"
int         NumOfParameters = 8;
int         Parameter1 = 5; // '0' for default.  This will allow for setting the 1st six.  Any more will be set to their default
int         Parameter2 = 0;
int         Parameter3 = 0;
int         Parameter4 = 0;
int         Parameter5 = 0;
int         Parameter6 = 0;
int         ParameterBuffer = 2;   // Choose which buffer value to use, '0' is the first buffer
int         IndicatorShift = 0; // define # of bars back to shift the indicator
123
To add comments, please log in or register