- Jun Feng: Please give me a fingerOK
- And a SL of 50 is probably above your startposition.
if(open=!OrderSend
What is open and why are you compare it to a ticket or -1?
whroeder1:
- OK
- And a SL of 50 is probably above your startposition.
- What is open and why are you compare it to a ticket or -1?
Thank you for your finger。but "50" is the Maximum price slippage,"open=!OrderSend" is an Another expression for orders.Can you give me another finger?
I spit up my coffee laughing when I saw this picture of the finger!
I misread that long line. Are your books one column but two feet wide? No because that is unreadable. They are 6 inches, sometimes two columns, so you can read it easily. So should be your code. I'm not going to go scrolling (or moving my eyes) back and forth trying to read it.
Check your return codes for errors, report them and you would know why. Don't just silence the compiler, it is trying to help you.
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
Only those functions that return a value (e.g. iClose, MarketInfo, etc.) must you call ResetLastError before in order to check after.

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
The following is the code:
The MT4 of my own computer can be tested and run without errors.But sending MQL5 backstage tests always feedback these two errors:"invalid price for OrderSend function,OrderSend error 4107",I don't know what's going on,Please give me a finger,Thanks.