How To Ask Questions The Smart Way. 2004
Prune pointless queries. You have only four choices:
-
Search for it. Do you expect us to do your research for you?
-
Beg at:
- Coding help - MQL4 programming forum
- Make It No Repaint Please! - MQL4 programming forum
- MT4 to MT5 code converter - MQL5 programming forum
- Please fix this indicator or EA - General - MQL5 programming forum
- Requests & Ideas (MQL5 only!) - Expert Advisors and Automated Trading - MQL5 programming forum
-
MT4: Learn to code it.
MT5: Begin learning to code it.
If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code. -
or pay (Freelance) someone to code it. Top of every page is the link Code Base.
Hiring to write script - General - MQL5 programming forum 2019.08.21
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
No free help 2017.04.21
what command instructions should i use
Hi Martinisrael, if you are running MT4/MQL4, the command is OrderSend. It requires a number of parameters. If you type "OrderSend" (it's case sensitive), highlights it, and press F1 in your EA editor, it should bring a detail help similar to the link below. Or, as you type OrderSend(, once you open the left parenthesis, the editor shows you the required parameters, highlighting what is the next parameter, and as long as you continue typing and press comma (the "," character) the editor helps again with the next parameter. Very straightforward.
https://docs.mql4.com/trading/ordersend
If your question is different, share your code and I may highlight where to add the OrderSend command, or perhaps other people could better understand your question.
The other option is to around the CODEBASE section to see full code of simple EA's, or browse the MQL4 help that holds sections with good examples.
- docs.mql4.com
good day
i need help am having difficult with coding my EA to open order when askprice is on trendline, eg sell orders to be opened when askprice is on upper trendline, buy order to be opened when askprice is on lower trendline and no orders are to be opened if price crosses over the trendline what command instruction should i give the EA
any help i will apreciate
your trend line have a name
you have to use ObjectGetValueByShift to get your line price
double lineprice = ObjectGetValueByShift("your trend line name", "Bar number");
and compare it with ASK,BID or any other number in your desire algorithm
if ( Ask > lineprice ) {
// buy condition
}
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
good day
i need help am having difficult with coding my EA to open order when askprice is on trendline, eg sell orders to be opened when askprice is on upper trendline, buy order to be opened when askprice is on lower trendline and no orders are to be opened if price crosses over the trendline what command instruction should i give the EA
any help i will apreciate