Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1026
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
The point doesn't change - you are trying to delete a pending order with a ticket "0" on every tick.
And who says that you have a pending order with a "0" tick on every tick? Have you checked how many pending orders there are? And how do you know that ....?
With which tick is "0"??? OrderGetTicket(0) does not mean that an order with ticket 0 is selected, but returns a ticket order from the list of pending orders under index 0.
You probably need to be more specific in your task.
For example: if there is a pending order whose magic is "1" - then delete it.
In this case, the implementation will be as follows:
Loop through all pending orders
If a pending order has been successfully selected (the returned value is the ticket greater than zero)
If the magic value of the selected pending order is "1"
Delete it
With which ticket "0"? OrderGetTicket(0) does not mean that an order with ticket 0 is selected, but returns a ticket of an order from the list of pending orders under index 0.
Yes, that's right.
Can you tell me how much RAM is needed to run the tester for 30 characters from 2004 to today?
The tester says there is not enough, but it doesn't say how much is needed.
Can you tell me how much RAM is needed to run the tester for 30 characters from 2004 to today?
The tester says there's not enough, but it doesn't say how much.
Run two characters, five characters ...
Run two characters, five characters ...
That's not really the question - how much memory do I need to buy to make such a test possible?
here's the result for one symbol (from the log in opening price mode)
here's 2:
3:
And here's 4:
It wentexponentially:) I can't trace the logic, as the ticks are about the same:
I've seen many reports of 20 or more characters, I do not believe that someone uses terabytes of RAM. Maybe there is a secret?
Is it possible to set the number of graphical buffers in the indicator?
And the second question, is there a possibility of forced reinitialization of the indicator used by the Expert Advisor in order to save RAM?
Is it possible to set the number of graphical buffers in the indicator?
And the second question, is there a possibility of forced reinitialization of the indicator used by the Expert Advisor in order to save RAM?
It is possible to decrease the number of indicator_plots stated in #property indicator_plots, I did it. But it is hardly possible to increase it. But this decrease will not lead to memory saving. After all, buffers remain. They are just transferred from INDICATOR_DATA to INDICATOR_CALCULATIONS and nothing more.
The stated in #property indicator_plots can be reduced, I did that. But increasing it is unlikely to be possible. But this reduction will not save RAM. The buffers remain, after all. They are just transferred from INDICATOR_DATA into INDICATOR_CALCULATIONS and nothing more.
Thank you for your reply. A cosmetic change to the number of buffers is not relevant, unfortunately.
I want to get MACD indicator handles from three timeframes in the OnInit() block. On the chart - it works, but in the tester it doesn't work, and the terminal hangs tight! So I want to get the data that doesn't exist? Can you please advise how to deal with it?