-
Why did you post your MT4 question in the 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. -
if(OrderOpenPrice() != LastBuyOrderOpenPrice + Pip*Point*10)
Doubles are rarely equal. Understand the links in:
The == operand. - MQL4 programming forum #2 2013.06.07 -
OrderSend(Symbol(), OP_BUY, Lots, Ask, 10*10, 0,0);
Check your return codes.Don't look at GLE/LE unless you have an error. Don't just silence the compiler, it is trying to help you.
What are Function return values ? How do I use them ? - MQL4 programming forum
Common Errors in MQL4 Programs and How to Avoid Them - MQL4 ArticlesYou would know that if you had used strict. Always use strict. Fixing the warnings will save you hours of debugging, but you must understand the differences.
-
Why did you post your MT4 question in the 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. - Doubles are rarely equal. Understand the links in:
The == operand. - MQL4 programming forum #2 2013.06.07 - Check your return codes.
Don't look at GLE/LE unless you have an error. Don't just silence the compiler, it is trying to help you.
What are Function return values ? How do I use them ? - MQL4 programming forum
Common Errors in MQL4 Programs and How to Avoid Them - MQL4 ArticlesYou would know that if you had used strict. Always use strict. Fixing the warnings will save you hours of debugging, but you must understand the differences.
- I didn't notice it until you point the fact that I've posted in the wrong path.
- For the other points I'll go through and will try to understand and update my code. If any development or if I needed further clarification I'll will post here. Thank you very much for your valuable time.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I need to opened a market buy order above the 1 pip above the last order. Just a one trade and continue same if price goes up. I'm using the following code and problem with that is, it is opening multiple orders at a one price whereas I needed open a one buy trade for 1 pip up. Please help me with the code.