Exactly) and most likely this part needs to be redone
if(deal_symbol==m_symbol.Name() && deal_magic==m_magic)
if(deal_entry==DEAL_ENTRY_OUT)
{
if(deal_reason==DEAL_REASON_SL)
ExtLot*=2.0; ((НЕ ТОРГУЕМ!!!!))
elseif(deal_reason==DEAL_REASON_TP)
ExtLot=m_symbol.LotsMin(); ((ОТКРЫВАЕМ СДЕЛКУ BUY ОБЫЧНЫМ ОБЪЕМОМ!!!))
}
И внутри второго условия добавить тоже самое
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.
This is where the wonderfulENUM_DEAL_REASON enumeration helps, namely
DEAL_REASON_TP
The trade was executed as a result of triggering of a Take Profit order
This property should be caught in OnTradeTransaction.
An example inStop Loss Take Profit Expert Advisor:
Exactly) and most likely this part needs to be redone
Exactly) and most likely this part needs to be redone
Now you just need to assemble all the components into one EA and voila!
Now all you have to do is put all the components together in one EA and voila!
Aha Thank you!
Please help connect these 2 advisers:
Please help connect these 2 EAs:
So "help" or "do it for me"? Have you tried it yourself? What exactly didn't work?
I don't understand any of this((
Please help connect these 2 EAs:
Thank you all, I've got it)
Folks, help!) Assistant in M5 is not working, what could be the problem?
Poured first into indicators, then into helpers, I'm fiddling with settings, setting different parameters, but no result.
PS. I am the first time if anything, do not judge severely!