u could use search box at top right of every page.
130 gives hits into documentation - read and then can learn more about wat mql4 + Client Terminal doing.
is fun if hang in there
oh yes... if new - have you take time read MQL4 Book
lots info on placing orders - u will see reasons why u getting 130
btw, code on site is public and so is not to be seen as valid - imho
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
good day, peeps.
i've just read about mql4. now, i have a question about a code that i got from this site (https://www.mql5.com/en/articles/1481). it's about the martingale system. although i dont intend to use it in live account, i just want to practice with it.
here's the code:
extern int distance=30;
int init()
{
//----
MathSrand(LocalTime());
//----
return(0);
int err = 0;
double Lot = 0.1;
double Ballance=0.0;
int start()
{
//----
if (OrdersTotal()==0&&err==0)
{
if (Ballance!=0.0)
{
if (Ballance>AccountBalance())
Lot=2*Lot;
else
Lot=0.1;
}
Ballance=AccountBalance();
int order;
if (MathRand()%2==0)
order=OrderSend(Symbol(),OP_BUY,Lot,Ask,5*Point,Bid-distance*Point,Ask+distance*Point);
else
order=OrderSend(Symbol(),OP_SELL,Lot,Bid,5*Point,Ask+distance*Point,Bid-distance*Point);
if(order<0)
{
if (GetLastError()==134)
{
err=1;
Print("NOT ENOGUGHT MONEY!!");
}
return (-1);
}
//n++;
}
//----
return(0);
}
why is it when i run this code, i get error code 130? i didn't change anything in this code... i just copied and paste it.
thanks in advance.