Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1953
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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, I have approached this autotrade algo from different angles, I'm I missing anything?
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using Code button) or attach the source file.
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem
We can't see your broken code.
“functioning properly” is meaningless — just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless.
How To Ask Questions The Smart Way. (2004)
When asking about code
Be precise and informative about your problem
I'd like to add a really simple information panel to my chart
I copied some code from somewhere on the internet and it caused my EA to stop trading, even though pressing the compile button did not show any errors. I've since scrapped that code.
Would someone have some very simple code to put into my EA that would show some of the 'extern int' values, like this?
Stating where to insert the code parts would also be much appreciated.
As this is not an EA-specific request, I've not included any code. However, I can if you feel it's needed.
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.
You buy at the Ask and sell at the Bid. Pending Buy Stop orders become market orders when hit by the Ask.
Your buy order's TP/SL (or Sell Stop's/Sell Limit's entry) are triggered when the Bid / OrderClosePrice reaches it. Using Ask±n, makes your SL shorter and your TP longer, by the spread. Don't you want the specified amount used in either direction?
Your sell order's TP/SL (or Buy Stop's/Buy Limit's entry) will be triggered when the Ask / OrderClosePrice reaches it. To trigger close to a specific Bid price, add the average spread.
MODE_SPREAD (Paul) - MQL4 programming forum - Page 3 #25
The charts show Bid prices only. Turn on the Ask line to see how big the spread is (Tools → Options (control+O) → charts → Show ask line.)
Most brokers with variable spreads widen considerably at end of day (5 PM ET) ± 30 minutes. My GBPJPY shows average spread = 26 points, but average maximum spread = 134 (your broker will be similar).
Hello, I've created an EA which sends notifications to telegram whenever an order is opened or closed,
but I've noticed my OrderOpenTime is always different from the time at which the message is actually sent,
the delay is not constant and is always different (from few minutes to about an hour).
However, the notification sent when an order is closed is always instant.
Has anyone experienced this before and know where the issue might come from? Thanks.
If you want help you should post your code.
If you don't want to post your code in a public forum, you could pay someone in Freelance.
It seems wrong to me to ask for free help with something that you are selling in the market.
If you want help you should post your code.
If you don't want to post your code in a public forum, you could pay someone in Freelance.
It seems wrong to me to ask for free help with something that you are selling in the market.
Okay, i deleted my post and i will check there