Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 655
![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
Good afternoon!
Can you tell me if it's possible to create a script that, when dragged to a certain bar, would give its date? Is it possible to do this? If so, what function? Been reading the handbook and forums but haven't found anything so far. Give me an idea or direction. Thank you!
You can, here's ready to do someone, in the folder indicator drop
You need the source code, maybe you'll see.
otherwise read in the help when OnInit() is executed
I need the source code, maybe I can see
The code itself is very old and voluminous, the button was implemented in it by gut feeling
I am attaching the code stripped of all unnecessary things, except for the button itself
We need to implement so that when you change the timeframe button is not pressed, is this even possible7!
The code itself is very old and bulky, the button was implemented by gut feeling
I am attaching the code, stripped of all unnecessary things, except for the button itself
I've posted one code recently, there, it has a button in it. May be useful for understanding...
Greetings. Can you please tell me where this value comes from when you subtract?
"Bid: ", Bid," buyPrice: ", buyPrice," Bid-buyPrice: ", Bid-buyPrice
buyPrice=Bid; set at opening
Greetings. Can you please tell me where this value comes from when you subtract?
"Bid: ", Bid," buyPrice: ", buyPrice," Bid-buyPrice: ", Bid-buyPrice
buyPrice=Bid; set at opening
Or use DoubleToString() instead of (string) with desired accuracy.
Or use DoubleToString() instead of (string) with desired accuracy.
Thank you. I used double(Bid-buyPrice) to calculate
Only why was it like this?
2. debugger
https://www.mql5.com/ru/articles/654
Thanks, but there's a line like this:
"Using the debugger is a new feature of MetaEditor 5, it is not present in MetaEditor 4"
deadlock)
Thanks, but there's a line like this:
"The use of the debugger is a new feature of MetaEditor 5, it is not present in MetaEditor 4"
deadlock)
There is. On current data. MT5 has debugging on historical data.
Thank you. Used double(Bid-buyPrice) to calculate
But why was it like this?
1. What for?
2. What was? How was it?