Show trades on the chart in real time- if this option is enabled, all trades performed by the trader will be automatically marked on the chart as(buy trade) and(sell trade) icons. When putting the mouse cursor over such an icon, a tooltip containing information about the deal will be shown: ticket, deal type, volume, symbol, opening price and price at the cursor point.
It can always be removed programmatically, as these are graphical objects Arrow and TrandLine.
Show trades on the chart in real time- if this option is enabled, all trades made by the trader will be automatically marked on the chart with an appropriate icon (buy deal) and (sell deal). If you put the mouse cursor over such an icon, a tooltip containing information about the deal will appear: ticket, deal type, volume, symbol, opening price and price at the cursor point.
You can always remove it programmatically, because it is the Arrow and TrandLine graphical objects.
I meant to delete programmatically in the following way:CHART_SHOW_OHLC,CHART_SHOW_BID_LINE, ..., but not by removal of graphical objects
How bad is it to do it this way, or is there no difference in load?
ChartRedraw every second:
Well, in principle, you've already answered above - you only need to redraw when it's required. Let's put it this way: you don't take money out of your wallet at regular intervals, but only when you need it ;)
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Can you tell me how to remove the markers after closing a position so that they are not displayed?
Is it possible to remove them programmatically?
Thank you!
Settings -> Options -> Trade:
Settings -> Options -> Trade:
I meant to delete programmatically in the following way:CHART_SHOW_OHLC,CHART_SHOW_BID_LINE, ..., but not by removal of graphical objects
Thank you!I meant to remove programmatically like this:CHART_SHOW_OHLC,CHART_SHOW_BID_LINE, ..., not by deleting graph objects
Thank you!There seems to be no such property in the program. Everything is left up to the user (manual operation only).
Good afternoon!
Can you tell me, is it possible to inherit a class and an interface in MQL?
I need to do something like this:
class Order : public CObject, Deserializable {
Can you tell me how to remove the markers after closing a position so that they are not displayed?
Is it possible to remove them programmatically?
Thank you!
Is it in the terminal or in the tester?
You must uncheck it in the terminal
In the tester, I don't think so...
How bad is it to do it this way, or is there no difference in load?
ChartRedraw every second:
How bad is it to do it this way, or is there no difference in load?
ChartRedraw every second:
It would be better to put it into OnTrade() handler. After all, arrows appear only when a trade occurs...
How bad is it to do it this way, or is there no difference in load?
ChartRedraw every second:
Well, in principle, you've already answered above - you only need to redraw when it's required. Let's put it this way: you don't take money out of your wallet at regular intervals, but only when you need it ;)
It's better to put it into OnTrade() handler. After all, arrows appear only when trades occur...
Yes, arrows do appear).
It is a totally different program, and it has nothing to do with arrows.
PS. The objects are drawn by timer every second, so there is such a task, otherwise the objects will not be redrawn withoutChartRedraw.
Yes, the arrows do appear.)
This is a completely different programme and has nothing to do with arrows.
PS. The objects are drawn by timer every second, that's why it is such a task, otherwise withoutChartRedraw the objects are not redrawn.
But it is worth to think how to redraw them when they are required. Or is it really necessary to redraw the chart every second?