I do not understand it (how to implement it in an EA), can´t you prescribe anything simpler? If there is no signal change and the order has already been closed, then it should not open again until the signal changes.
Lowech: I cannot figure it out (how to implement it in an EA), is there nothing easier to prescribe? If there is no change in the signal and the order has already been closed, then it should not open again until the signal has changed.
There is a signal to open a Buy position, for example.
Find in the order history the most recently closed trade.
see its type,
If it is Sell, you can open Buy ----> return(ORDER_TYPE_BUY);
if it is a Buy, then
see what kind of profit this Buy position was closed with.
If it is negative, we can open a Buy ----> return(ORDER_TYPE_BUY);
If it is positive, we cannot open a new Buy ----> return(WRONG_VALUE);
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.
For what reason in MQL4 can iRSI() return zero?
Arguments have been checked 100 times for correctness.
Show me the minimum code that gives this result
You should have uploaded the history. Otherwise iRSI gives out zero
Can you tell me how to upload a story? And what does it mean. I have a thousand bars in the history in the settings. Is it correct?
Just open a trading instrument.
Good afternoon. Can you please tell me how to make orders not to reopen after closing on profit?
Anything special? Or just a profit?
I cannot figure it out (how to implement it in an EA), is there nothing easier to prescribe? If there is no change in the signal and the order has already been closed, then it should not open again until the signal has changed.