It seems that the last two parameters of iCustom were not entered as they are the buffer-number and the shift - they can't be boolean!
Read about iCustom() (Mark it in the editor and press F1).
It seems that the last two parameters of iCustom were not entered as they are the buffer-number and the shift - they can't be boolean!
Read about iCustom() (Mark it in the editor and press F1).
Tanq
you mean i must write :
double s = iCustom(Symbol(),0, "Magic dots 2 mtf alerts", 0 ,MODE_EMA ,6 , 0 , PRICE_CLOSE , false,false,true,false,false,false0,0);
Tanq
you mean i must write :
double s = iCustom(Symbol(),0, "Magic dots 2 mtf alerts", 0 ,MODE_EMA ,6 , 0 , PRICE_CLOSE , false,false,true,false,false,false0,0);
1) A ',' seems to be missing: "..false0,0);"
2) As I don't know your indicator and its parameters it might work (with the ',') but it is not sure!
3) Finally I don't know whether the buffer 0 is the one you need!
Hi to all
My main problem is ==> i don't have the color of last dot in magic dot indicator with (iCustom function)!!
double s = iCustom(Symbol(),0, "Magic dots 2 mtf alerts", 0 ,MODE_EMA ,6 , 0 , PRICE_CLOSE , false,false,true,false,false,false);
I Commented (s) and the out puts doesn't mach with color!!!
please answer !!
double data;
for(int i=0;i<Bars-20;i++)
{
data=iCustom(...,i);
if(data!=EMPTY_VALUE)
{
last_dot_price=data;
break;
}
}
- You should write a self documenting function instead of calling iCustom directly, see Detailed explanation of iCustom - MQL4 forum
- Color means it uses two or more buffers. You have a color when the value is not EMPTY_VALUE.
- You must loop backwards until you find a buffer with a value. Then you'll know the color based on which buffer has the value.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi to all
My main problem is ==> i don't have the color of last dot in magic dot indicator with (iCustom function)!!
double s = iCustom(Symbol(),0, "Magic dots 2 mtf alerts", 0 ,MODE_EMA ,6 , 0 , PRICE_CLOSE , false,false,true,false,false,false);
I Commented (s) and the out puts doesn't mach with color!!!
please answer !!