Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 741

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
For the next code, a story in pictures:
Disconnected the network, adding an indicator
Switched to the next chart
y2 changed value, I go back
y2 has returned its value, but the marker is counted by the "gone" value! I spin the mouse wheel.
The marker is back in its place!
When switching to the adjacent graph, all inactive windows are not expanded to full screen. That is, they are smaller than in the active state. Therefore, objects get smaller coordinates from the upper left corner of the graph. Then, when you activate the window, you need to wait for the chart to be refreshed or refresh it forcibly. This is done by scrolling the scroll wheel.
For the next code, a story in pictures:
Disconnected the network, adding an indicator
I switch to the next chart
y2 changed value, I go back
y2 has returned its value, but the marker is counted by the "gone" value! I spin the mouse wheel.
The marker is back in its place!
you can discardChartTimePriceToXY
and print plain text(OBJ_TEXT) + 1-3 bars into the future, it will always be where you need it)
you can discardChartTimePriceToXY
and print plain text(OBJ_TEXT) + 1-3 bars into the future, it will always be where you want it)
Only if you disable bar shift to the right, the text will be outside the window.
The idea is correct, but apparently experience is very lacking.
Only if you disable bar shift to the right, the text will be outside the window.
It's a good idea, but you're probably very inexperienced.
Well, if you want the marker to be right-side up, you can just take the rightmost bar on the chart and draw on it.
Good afternoon .
Can you suggest how to create global type variables in EA, that these data are not cleared when calling new functions?
Call the variable data through :
Where then "var" can be inserted in operations.
And they are created with the function :
I'm just trying to understand everything. There are no examples and I am not quite sure how data will work if one isdatetime and the other isbool? No errors?
For the next code, a story in pictures:
Disconnected the network, adding an indicator
Switched to the next chart
y2 changed value, I go back
y2 has returned its value, but the marker is counted by the "gone" value! I spin the mouse wheel.
The marker is back in its place!
Thank you very much, tomorrow I will think of a way to replace iTime and iClose, as I'm sitting on XP.
Just one function OrderSend().
Rather, the OrderSend() will open an order, but the stop and profit price will be absent in this order.
This order must be modified on subsequent lines of code using OrderModify() and add stop and profit to the order.
time, but I can't find any information on it.
I believe the Breakeven function has a certain insurance, but only if the price has gone in the red.
If the price turned to the loss, but there is no stop loss?
Hi all!
Can you please tell me why I can't enter its properties when the EA is working? I used to, but now I can't open the properties. Once restarting the terminal helped, but the problem appeared again after a minute. Expert Advisor is fresh, terminal is also working recently. What is the problem with EA properties ?
Thank you !
Hi all!
Can you please tell me why I can't enter its properties when the EA is working? I used to, but now I can't open the properties. Once restarting the terminal helped, but the problem appeared again after a minute. Expert Advisor is fresh, terminal is also working recently. What is the problem with EA properties ?
Thank you!
Press hotkey F7 :-)
clicking on the EA's icon is not always possible - the icon might be covered by other objects, the EA might overload the message queue and 100500 other reasons