Download MetaTrader 5
To add comments, please log in or register
All activity of the MQL5.community members is displayed on a single page!
alexlearnmql
41
alexlearnmql 2016.09.24 15:32 
Hi just a quick query regarding values for icustom.

I tried to check if I was getting the correct values for icustom by using alert function on my indicator. The alerts on my indicator and prints from my ea match up but the data on the data window is different from both so I am not sure if my icustom is correct and just want to check why the data window displays different values. I would post a screenshot but on mobile at moment.
whroeder1
13644
whroeder1 2016.09.25 12:23  
The data window show what the mouse is over. Make sure you're over the correct bar.
alexlearnmql
41
alexlearnmql 2016.09.25 13:04  
WHRoeder:
The data window show what the mouse is over. Make sure you're over the correct bar.

 Yea I tried to match up data window, prints and alerts at various different time frames but it is showing different. I will post a screenshot once I am on my pc.
alexlearnmql
41
alexlearnmql 2016.09.25 14:31  
alexlearnmql:

 Yea I tried to match up data window, prints and alerts at various different time frames but it is showing different. I will post a screenshot once I am on my pc.

icustomvalues

 MA1=50

 MA2=200 

I have EA set to every tick, the journal has missing time frames(is this normal?) Is my icustom call correct?

void OnTick()
{

MA1=iCustom(NULL,0,"IcustomMA",1,0); 
MA2=iCustom(NULL,0,"IcustomMA",2,0);

Print("MA1: ",MA1);
Print("MA2: ",MA2);

}
whroeder1
13644
whroeder1 2016.09.25 16:16  
alexlearnmql: the journal has missing time frames(is this normal?) Is my icustom call correct?
  1. No idea what you mean by "missing time frames." If entries are posted too fast the tab will have missing entries, the file will have all. (Right click -> open.)
  2. Zero is not a valid symbol. iCustom - Technical Indicators - MQL4 Reference states you can use NULL to mean the current chart. There are no mind readers here. We don't know your indicator, nor wether the default parameters are 50 & 200. Detailed explanation of iCustom - MQL4 forum
alexlearnmql
41
alexlearnmql 2016.09.25 16:27  
WHRoeder:
  1. No idea what you mean by "missing time frames." If entries are posted too fast the tab will have missing entries, the file will have all. (Right click -> open.)
  2. Zero is not a valid symbol. iCustom - Technical Indicators - MQL4 Reference states you can use NULL to mean the current chart. There are no mind readers here. We don't know your indicator, nor wether the default parameters are 50 & 200. Detailed explanation of iCustom - MQL4 forum
I was trying to attach it to different charts to see if it would fix the problem, the 0 was a mistake when I pasted code. Yea i meant missing entries.
/
To add comments, please log in or register