Experts: BreakOut15

 

BreakOut15:

An Expert Advisor based on two indicators iMA (Moving Average, MA). At crossing, we move back from the price at a certain distance and then expect the level obtained to be broken through.

Author: Vladimir Karputov

 

@MURENAT

When compiling it gives errors

Files:
 
MURENAT:

@MURENAT

It gives errors when compiling

why do you compile it? it is not prepared for the market..that's why it gives errors.

 
MURENAT:

@MURENAT

When compiling it generates errors

You should replace INIT_FAILED with false in the specified lines.

 

@Vladimir Karputov


It is not opening sales when the fast average is below the long average. Can you help?


It is not opening sales when the fast average is below the long average. Can you help?


 
Eduardo Vian:

@Vladimir Karputov


It is not opening sales when the fast average is below the long average. Can you help?


It is not opening sales when the fast average is below the long average. Can you help?


Check the messages in the log file (Experts tab).

 
Vladimir Karputov :

Verifique como mensagens no arquivo de log (guia Experts).




segue em anexo

follows the annex

Files:
20191114.log  21 kb
 
Eduardo Vian:




segue em anexo

follows the application

Is it working now?

 
Vladimir Karputov :

Isso funciona agora?

It works, but it only buys when the quick average is above the long average.

It does not open a sale when the fast average is below the long average.


It works, but only buying when the fast average is above the long average.

It does not open a sale when the fast average is below the long average.

 
Eduardo Vian:
It works, but it only buys when the quick average is above the long average.

It does not open a sale when the fast average is below the long average.


It works, but only buying when the fast average is above the long average.

It does not open a sale when the fast average is below the long average.

You need to remove the " return" in"HandleOpenSell".

//+------------------------------------------------------------------+
//| Handle Sell|
//+------------------------------------------------------------------+
void HandleOpenSell()
  {
   return;
//--- check if still a valid breakout
 
Vladimir Karputov :

É necessário remover " return " em " HandleOpenSell "


Ótimo Agora funcionou.

Ótimo. Agora funcionou.

thank you