Dear programmers, please answer me the following question: EA opens n number of orders on M1, according to indicator signals and depending on trend direction. A signal to close orders is received and the strategy is reversed. Orders with profit are being closed successfully and negative ones are being held up until better times. Orders of the opposite direction are piled up and the "lucky" ones from the previous series are simultaneously closed at breakeven. Then the moment comes when the amount of orders of opposite directions is compared and this is when I, as a manager, start a cleaning action that immediately clears the terminal of all orders and the cycle repeats. There are times when the orders are not piled up, for example, during a flat, but the described situation is not uncommon and if we miss it, we may get a dangerous drift. Question: Can I stipulate in my EA that this procedure should be done automatically? For one thing evaluate my "innovation" or criticize it constructively or indicate the source, where this strategy is used and what are the results, because I have already prepared a suitcase for the green, I rake them all out of the market, nobody should suffer. Thanks in advance.
Look, we have a code in which there is a place where drawing of graphical objects is prescribed, in the same function is described the transfer of values to the buffer. If graphical objects are drawn, then the value should be transferred to the buffer and then to the Expert Advisor. Do I understand it or not? With what delay do these values come to the Expert Advisor or instantly?
You can't tell anything without the full code of the indicator.
yosuf: Dear programmers, please answer my question: ...
Well, perhaps we need to create a condition where the EA counts open losing positions Buy, then counts open losing positions Sell and when their number is equal to each other, all positions are closed. The main thing is the accuracy of the algorithm.
You know, I can't overwrite an archive with zip extension into rar. I right click on the archive - in the menu pyryminate - a window lights up, you can write there whatever you want, but the archive type is saved.
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.
Maybe you want to compare the current price with the closing price on the previous bar?
somehow)
Thank you for your help! I have a question - how will the program know that High[1] is the previous value?
You can go like this.
This is the code you need )))). (just kidding).
Look, we have a code in which there is a place where drawing of graphical objects is prescribed, in the same function is described the transfer of values to the buffer. If graphical objects are drawn, then the value should be transferred to the buffer and then to the Expert Advisor. Do I understand it or not? With what delay do these values come to the Expert Advisor or instantly?
You can't tell anything without the full code of the indicator.
Dear programmers, please answer my question: ...
You can go like this