You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
and please fix its errors or give me some hints
"mohsin360", the compiler is telling you what is wrong. Why do you not read the error report and follow up.
If it says, that you have a variable which has not been defined, then define the variable so that it does not cause the error.
If it says that you have an unbalance parenthesis ")" that means you have to check that you place the correct number of left and right parenthesis and that one or more are probably missing.
These are simple errors for someone who already knows how to code a little.
If you do not know anything about programing, then maybe you should dedicate some time to first learning the basics of programming and using a compiler and correcting the syntax errors in code in general, before trying to write an EA or Indicator.
A good place to start is the "MQL4 Book", right here on this site!
Alternatively maybe a beginners book on "C Programing" or maybe some online tutorials on "C" for beginners. That will start you off so as to understand the basics and then you can proceed with MQL4.
yes i read error report and it contains first and second errors eight in numbers b coz of my trailing start code and i come to know that alpari or mt4 does not allow a minimum trailing of 30 pips so i decided to change code a little bit and using straight order modifying code instead of trailing start code .thanks u all for co operating with me so much . dont be so relax ill ask again if i need help after making and compiling the new changes
Regards
Mohsin.meo
my meta editor shows some errors first one is (145,51) when i search in errors list i fine no 145 saying that :[Modification denied because order too close to market.] and thts true b coz at that line i enterd code to modify order in plus of just 5 pips but when i search other errors like (153,62),(158,8),(164,8),(170,55),(180,60)and (185,8).i cant fine any error no listed in the list here is the list where i fine ones meaning and failed to find others .please can any one tell me what is the meaning of the errors and where i can find meanings b coz i searched "unexpected token" and find that i only comes when there is some problem with the code syntax but as u can see i have two errors at top say wrong parameters count @(145,51) and (153,62) and only 145 listed in the index but 153,62 is not Y
my meta editor shows some errors first one is (145,51) when i search in errors list i fine no 145 saying that :[Modification denied because order too close to market.] and thts true b coz at that line i enterd code to modify order in plus of just 5 pips but when i search other errors like (153,62),(158,8),(164,8),(170,55),(180,60)and (185,8).i cant fine any error no listed in the list here is the list where i fine ones meaning and failed to find others .please can any one tell me what is the meaning of the errors and where i can find meanings b coz i searched "unexpected token" and find that i only comes when there is some problem with the code syntax but as u can see i have two errors at top say wrong parameters count @(145,51) and (153,62) and only 145 listed in the index but 153,62 is not Y
145 is the line number not the error number . . . 51 is the character column number. These are coding errors not execution errors . . . fix your braces.
This is wrong . . .
OrderSelect() the first parameter must be an int not a string, read the documentation.
Same here . . .
These are string and will not work . . .
same here . . .
i already declared Buy_ticket as intiger containing value of ticket recieved from the server @ ordersend Buy and same for sell.
if u say that the first parameter of orderselect must be in numbers then how i got the no obviously i first stored it in an intiger and then call that intiger and thts what im doing.
?
i already declared Buy_ticket as intiger containing value of ticket recieved from the server @ ordersend Buy and same for sell.
if u say that the first parameter of orderselect must be in numbers then how i got the no obviously i first stored it in an intiger and then call that intiger and thts what im doing.
?
This is an integer . . .
this is a string
"Buy_ticket"
if ur telling abt "" ?
i removed these and the metaeditor ask abt predefined variables showing error variable not defined
buy_ticket
sell_ticket
now i fix these double commas and having only two errors
here is the code
if ur telling abt "" ?
i removed these and the metaeditor ask abt predefined variables showing error variable not defined
buy_ticket
sell_ticket
now i fix these double commas and having only two errors
here is the code
buy_ticket is not the same as Buy_ticket
You still have many other errors . . .
OrderModify() (please read the documentation) takes at least 5 parameters . . .
OrderModify(buy_ticket, buy_open_price, slbuy);
. . . not three. colour is optional . . .
else what ?
else{ }