[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 401 1...394395396397398399400401402403404405406407408...537 New comment ilunga 2011.05.23 08:59 #4001 Dimka-novitsek: No, I moved the semicolon inside the brackets. '\end_of_program' - unbalanced left parenthesis C:\TradeFormat MF Trader 4\documentation/experts\älvin.mq4 (59, 1) A closing parenthesis is missing, I've already pointed it out to you. You open the bracket if(, and there is no closing Dimka-novitsek 2011.05.23 09:06 #4002 There are three closing parentheses just behind X. For three loops. Everything seems to be grammatically correct there, right? There are 6 brackets inside the start, 8 in total, the brackets are perfectly balanced, which is why I'm addressing here. else and else if? Where Would Control Be Help please ilunga 2011.05.23 09:08 #4003 Dimka-novitsek: There are three closing parentheses right after X. For three loops. it's not a brace, it's a round brace. count again ATTENTION if(OrderSymbol()==Symbol()&&OrderMagicNumber( )==1000{ FOUR open and THREE close parentheses Dimka-novitsek 2011.05.23 09:15 #4004 Thank you!!! Right!!! I'll look into it, I'll count the round ones. Виталий 2011.05.23 12:20 #4005 Please advise me where I went wrong. I wrote a simple indicator: ExtMapBuffer1[i] = iMA(Symbol(),PERIOD_H4,6,0,MODE_SMA,PRICE_CLOSE,i); // Красная ExtMapBuffer2[i] = iMA(Symbol(),PERIOD_H1,24,0,MODE_SMA,PRICE_CLOSE,i);// Зелёная I was expecting two similar lines on the chart, but I saw completely different ones: ilunga 2011.05.23 12:28 #4006 vitali_yv: Please advise me where I went wrong. I wrote a simple indicator: I was expecting two similar lines on the chart, but I saw completely different ones: Well, the data on your chart is H1, and you want to draw H4 on it, so it turns out that the red line is "quadrupled" relative to reality Виталий 2011.05.23 12:32 #4007 ilunga: Well, the data on your chart is H1, and you want to draw H4 on it, so it turns out that the red line is "squeezed" fourfold compared to reality Perhaps, thank you. Алексей 2011.05.23 12:38 #4008 vitali_yv: Please advise me where I went wrong. I wrote a simple indicator: I was expecting two similar lines on the chart, but I saw completely different ones: ExtMapBuffer1[i] = iMA(Symbol(),PERIOD_H4,6,0,MODE_SMA,PRICE_CLOSE,iBarShift(NULL,PERIOD_H4,Time[i],false)); // Красная ExtMapBuffer2[i] = iMA(Symbol(),PERIOD_H1,24,0,MODE_SMA,PRICE_CLOSE,i);// Зелёная Maybe that's how it works. Виталий 2011.05.23 12:41 #4009 Wah, thank you, Temnyj ! Dimka-novitsek 2011.05.23 13:40 #4010 Thank you, ilunga ! 1...394395396397398399400401402403404405406407408...537 New comment
No, I moved the semicolon inside the brackets.
'\end_of_program' - unbalanced left parenthesis C:\TradeFormat MF Trader 4\documentation/experts\älvin.mq4 (59, 1)
A closing parenthesis is missing, I've already pointed it out to you.
You open the bracket if(, and there is no closing
There are three closing parentheses just behind X. For three loops.
Everything seems to be grammatically correct there, right? There are 6 brackets inside the start, 8 in total, the brackets are perfectly balanced, which is why I'm addressing here.
There are three closing parentheses right after X. For three loops.
it's not a brace, it's a round brace.
count again ATTENTION
FOUR open and THREE close parentheses
Please advise me where I went wrong. I wrote a simple indicator:
I was expecting two similar lines on the chart, but I saw completely different ones:
Please advise me where I went wrong. I wrote a simple indicator:
I was expecting two similar lines on the chart, but I saw completely different ones:
Well, the data on your chart is H1, and you want to draw H4 on it, so it turns out that the red line is "quadrupled" relative to reality
Well, the data on your chart is H1, and you want to draw H4 on it, so it turns out that the red line is "squeezed" fourfold compared to reality
Perhaps, thank you.
Please advise me where I went wrong. I wrote a simple indicator:
I was expecting two similar lines on the chart, but I saw completely different ones: