Morse code - page 10

 
Vladimir Karputov:

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

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; ((НЕ ТОРГУЕМ!!!!))
            else if(deal_reason==DEAL_REASON_TP)
               ExtLot=m_symbol.LotsMin(); ((ОТКРЫВАЕМ СДЕЛКУ BUY ОБЫЧНЫМ ОБЪЕМОМ!!!))
           }
И внутри второго условия добавить тоже самое
if(deal_reason==DEAL_REASON_SL)
               ExtLot*=2.0; ((НЕ ТОРГУЕМ!!!!))
            else if(deal_reason==DEAL_REASON_TP)
               ExtLot=m_symbol.LotsMin(); ((ОТКРЫВАЕМ СДЕЛКУ BUY ОБЫЧНЫМ ОБЪЕМОМ!!!))
Главное понять как правильно добавить условия и куда их вставить в коде Morse
 
dsfsf333:

Exactly) and most likely this part needs to be redone

Now you just need to assemble all the components into one EA and voila!

 
Vladimir Karputov:

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:

 
dsfsf333:

Please help connect these 2 EAs:

Is it "help" or "do it for me"? Have you tried it yourself? What exactly didn't work?
 
Vladimir Karputov:
So "help" or "do it for me"? Have you tried it yourself? What exactly didn't work?

I don't understand any of this((

 
dsfsf333:

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!

Reason: