Ive got a little problem with my mql4 script. I wanted to detect the market for special candlestick patterns. So I wrote a code with a specific condition(1). To keep it easy and short, Ive declared period[x] with all the different timeframes and witha specific chart symbol(2). To check several symbols a time, i thaught that it would be clever to write a and b in one condition with &&. That would save a lot of time and I shouldnt write the whole condition for every symbol. But, as you can probably imagine: It didnt work. It always says: implicit conversion from 'number' to 'string'.
I hope for your help.
if(iClose(a && b,period[x],1)>iOpen(a && b,period[x],0)...
What is the meaning of "NZDJPY" && "GBPUSD" ?
By the way : "a && b" give you a bool (true or false), but iClose and iOpen first parameter is a string.
To add comments, please log in or register