[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 146
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
How to Create a Comment on an Order in MQL4?
When an order is sent, the comment is one of its parameters, but optional, and it is often omitted...
https://docs.mql4.com/ru/trading/OrderSend
When an order is sent, the comment is one of its parameters, but optional, and it is often omitted...
https://docs.mql4.com/ru/trading/OrderSend
What if the order is already open?
What if an order is already open?
Carried over.
Kurilin 05.09.2011 05:30
Hello, i've started to write an EA in MQL4, i haven't done it before. If i'm not sure how to use this function, i'm not sure i'm sure i'll be able to use it correctly, but i'm sure i'll still see the bottom line of the Bollinger Bands indicator and the Ask line, for example. I am very thankful for the help.
Please advise how to make an EA open an order with zero TP and SL and then set TP and SL, it is necessary for Market Execution.
Please advise how to make an EA open an order with zero TP and SL and then set TP and SL, it is necessary for Market Execution.
You can open an order with the first line of code and modify it with the second one :))))))
And if you do it right, then:
1. Before opening, check position parameters for valid parameters
2. open a position
3. Make sure the position is open
3.1 If not, deal with the error that occurred (there may be many)
3.2 After the error is correctly processed, there are several options. One of them is the inability to open a position - exit from the function, informing the Expert Advisor about that for its correct further work
3.3. after the error is handled correctly and the parameters are corrected, provided the order is finally opened
4. Check the stop and take position parameters for valid StopLevel limitations of your brokerage company, correct them if needed
5. Modify the open position
6. Check whether the modification was successful
7. etc., etc. .....
Who has it easy now ??? :))))))))))))))))
First line of code to open an order, ........ :))))))
Who has it easy now? :))))))))))))))))
Is it possible to write the code in such a way, that the Expert Advisor would stack the money in the nightstand in even rows?
Maybe, there is a ready function?
)))
Could you please tell me how to modify my EA to trade on Market Execution so that it opens with zero Take Profit and Stop Loss and then sets Stop Loss and Take Profit?
Please write a typical code. Thank you in advance.
You got your answer above. Do not duplicate your posts and topics