Can't get Icustom value - page 2

 
ronaldgoal:

yes it works good like that however in backtest I'm having difficulties. Thanks anyway :)

What is the difference
 

Oops i forgot to mention, I'm doing myself like a fool

 

Okay Mr qjol you are right, it does work with your parameters:

double a = iCustom(NULL,0,"MTF_Moving_Average",0,0);

however it does not work with mine:

double a = iCustom(NULL,0,"MTF_Moving_Average",1440,3,3,2,0,0);

 
There must be something wrong with my parameters but I can't figure out what....
 

what is this parameters

double a = iCustom(NULL,0,"MTF_Moving_Average",1440,3,3,2,0,0);

 
qjol:

what is this parameters

double a = iCustom(NULL,0,"MTF_Moving_Average",1440,3,3,2,0,0);


Thank you for your help, I figured that out.

I wanted to configure the following external parameters:

TimeFrame:1440

Matype :3

MaPrice:2

MaLengh:2

However there is some "notes" in between and I was just ignoring them. I learned today that you have to assign a "0" value to them. It now works this way:

double a = iCustom(NULL,0,"MTF_Moving_Average",0,1440,0,3,0,3,2,0,0);

Thanks again for brainstorming with me qjol :)

 
ronaldgoal:


Thank you for your help, I figured that out.

I wanted to configure the following external parameters:

TimeFrame:1440

Matype :3

MaPrice:2

MaLengh:2

However there is some "notes" in between and I was just ignoring them. I learned today that you have to assign a "0" value to them. It now works this way:

double a = iCustom(NULL,0,"MTF_Moving_Average",0,1440,0,3,0,3,2,0,0);

Thanks again for brainstorming with me qjol :)


wrong
 
qjol:

wrong

wrong?
 

Check and see

 
qjol:

Check and see


can't see :(
Reason: