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
Hi guys,
I'm trying to learn some mql4 coding to create my own EA's and im going through the online thing they have here and i am a bit confused on the following parts:
Symb=Symbol(); // Security name
}
why is it "if (Total < 1)" and not "Total > 1" ??? it doesnt make sense to me :S arent we looking for total to be higher than 1? not less than?
also further down:
Alert("Attempt to open Buy. Waiting for response..");
Ticket=OrderSend(Symb,OP_BUY,Lts,Ask,2,SL,TP);//Opening Buy
if (Ticket < 0) // Success :)
{
Alert ("Opened order Buy ",Ticket);
return;
why is it "Ticket < 1" and not "Ticket > 1" ??? wouldnt a ticket number coming back be much larger than 1?
Am i completely misreading something here?
any help would be much appreciated :^)