kurosia:
sell or buy New ordersend
"common error"
why this appear!
trade code
///
//ordersend ---buy
ticket=ordersend("EURUSD",OP_BUY,Lots,Ask,5,0,0,"buy",0,0,Red);
~~
if (ordersymbol()=="EURUSD" && ASK > ORDEROPENPRICE()+100*POINT)
ticket=ordersend("EURUSD",OP_BUY,Dlots,Ask,5,0,0,"RB",0,0,Red);
///
broker========================FXPRO
add to image: error message
I searched and I found this.
https://www.mql5.com/en/forum/112550
Jellybean
ticket=ordersend("EURUSD",OP_BUY,Lots,Ask,5,0,0,"buy",0,0,Red); ~~ if (ordersymbol()=="EURUSD" && ASK > ORDEROPENPRICE()+100*POINT)
You are using a 5 digit broker, so your slippage is 1/2 pip
You are using a 5 digit broker, so you are looking for a 10 pip (minus the spread) profit.
ordersymbol() and ORDEROPENPRICE()
I assume these are typos as they won't compile. They are also invalid unless there is an interveningif (!OrderSelect( ticket, SELECT_BY_TICKET )) Alert( "OrderSelect(",ticket, " by ticket) failed: ", GetLastError() );
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
sell or buy New ordersend
"common error"
why this appear!
trade code
///
//ordersend ---buy
ticket=ordersend("EURUSD",OP_BUY,Lots,Ask,5,0,0,"buy",0,0,Red);
~~
if (ordersymbol()=="EURUSD" && ASK > ORDEROPENPRICE()+100*POINT)
ticket=ordersend("EURUSD",OP_BUY,Dlots,Ask,5,0,0,"RB",0,0,Red);
///
broker========================FXPRO
add to image: error message