xinbye: When orderbuy or ordersell is close, the lots is higher lots orderbuy or odrersell . I don't know why Max lots orderbuy or ordersell EA can create is 0.02. How can i to get a lots (0.04,0.08...)
- When you post code please use the SRC button! Please edit your post.
General rules and best pratices of the Forum. - General - MQL5 programming forum -
Why did you post your MT4 question in the
Root /
MT5 EA section
instead of the
MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon. - Your post is almost unintelligible. If you are using mechanical translation, you must use simple language structure.
double buy = Ask; int newbuy = OrderSend(sym,cmdbuy,lot,buy,NULL,stoploss_ask,takepropit_ask,NULL,magic,NULL,SYMBOL_ARROWUP);
Your code loops forever without a Sleep and without a RefreshRates. Therefor Bid/Ask will not be current and your OrderSend fails. Check your return codes for errors and report them.
What are Function return values ? How do I use them ? - MQL4 and MetaTrader 4 - MQL4 programming forum
Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles- What color is SYMBOL_ARROWUP?
OrderSend - Trade Functions - MQL4 Reference - Same as Martingale: Martingale, guaranteed to blow your account eventually.
whroeder1:
- When you post code please use the SRC button! Please edit your post.
General rules and best pratices of the Forum. - General - MQL5 programming forum -
Why did you post your MT4 question in the
Root /
MT5 EA section
instead of the
MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon. - Your post is almost unintelligible. If you are using mechanical translation, you must use simple language structure.
- Your code loops forever without a Sleep and without a RefreshRates. Therefor Bid/Ask will not be current and your OrderSend fails. Check your return codes for errors and report them.
What are Function return values ? How do I use them ? - MQL4 and MetaTrader 4 - MQL4 programming forum
Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles - What color is SYMBOL_ARROWUP?
OrderSend - Trade Functions - MQL4 Reference - Same as Martingale: Martingale, guaranteed to blow your account eventually.
Hello,
2. I don't know, forum mt5 and mt4 is difference. I think it's one Next time i'll post in the correct place :)
3. I will try to improve english :)
4. i have update code: it not error when compile, i am testing and see you soon :)
Thanks for helps.
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
hello, My EA auto buy or sell on Gold terminal. When orderbuy or ordersell is close, the lots is higher lots orderbuy or odrersell . I don't know why Max lots orderbuy or ordersell EA can create is 0.02. How can i to get a lots (0.04,0.08...) Thanks
This is my EA