Hi guys, I need some help with this EA which I can not figure how the parameter settings in it for the Kijun has to be written. Always get the "')'wrong parameter count " message.
The EA has potential it trades with the AlliHeik indicator and filters with the Kijun.
bool getSignal(int mode)
{
double Kijun = iMA(Symbol(),0,Kijun,0);
double val1 = iCustom(Symbol(),0,"Heiken_Ashi_Smoothed",MaMetod,MaPeriod,MaMetod2,MaPeriod2,0,0);
double val2 = iCustom(Symbol(),0,"Heiken_Ashi_Smoothed",MaMetod,MaPeriod,MaMetod2,MaPeriod2,1,0);
double val3 = iCustom(Symbol(),0,"Heiken_Ashi_Smoothed",MaMetod,MaPeriod,MaMetod2,MaPeriod2,0,1);
double val4 = iCustom(Symbol(),0,"Heiken_Ashi_Smoothed",MaMetod,MaPeriod,MaMetod2,MaPeriod2,1,1);
//color change signal - works indepenently
if(mode == MODE_SHORT && val1>val2 && val3<val4 ) return(true);
if(mode == MODE_LONG && val1<val2 && val3>val4 ) return(true);
//bar place signal - depends from close at SL or TP
The EA has potential it trades with the AlliHeik indicator and filters with the Kijun.
bool getSignal(int mode)
{
double Kijun = iMA(Symbol(),0,Kijun,0);
double val1 = iCustom(Symbol(),0,"Heiken_Ashi_Smoothed",MaMetod,MaPeriod,MaMetod2,MaPeriod2,0,0);
double val2 = iCustom(Symbol(),0,"Heiken_Ashi_Smoothed",MaMetod,MaPeriod,MaMetod2,MaPeriod2,1,0);
double val3 = iCustom(Symbol(),0,"Heiken_Ashi_Smoothed",MaMetod,MaPeriod,MaMetod2,MaPeriod2,0,1);
double val4 = iCustom(Symbol(),0,"Heiken_Ashi_Smoothed",MaMetod,MaPeriod,MaMetod2,MaPeriod2,1,1);
//color change signal - works indepenently
if(mode == MODE_SHORT && val1>val2 && val3<val4 ) return(true);
if(mode == MODE_LONG && val1<val2 && val3>val4 ) return(true);
//bar place signal - depends from close at SL or TP
Attached File(s)
Kijun_1.mq4
14 KB
|
363 downloads