Experts: 2MA Bunny Cross Expert

 

2MA Bunny Cross Expert:

An Expert Advisor based on two indicators iMA (Moving Average, MA).


Author: Vladimir Karputov

 

It is a pity that it does not trade correctly, I have not met any EAs that work correctly on moving averages crossover)))


It opens only short, does not close short and does not open long when the signal changes.


 
MrShuM:

It's a pity that it doesn't trade correctly, I haven't met any EAs that work correctly on moving averages crossing)))


It opens only short, does not close short and does not open long when the signal changes.


There is an intermediate version in KodoBase: it blocks attempts to open BUY positions.

/*if(signal_buy)
 {
 ClosePositions(POSITION_TYPE_SELL);
 OpenBuy(0.0,0.0);
 }*/
   if(signal_sell)
     {
      ClosePositions(POSITION_TYPE_BUY);
      OpenSell(0.0,0.0);
     }


Thanks for your attention, the version will be updated to 1.002.

 

Tried compiling, it gives errors.


 
MrShuM:

Tried compiling, it gives errors.


Version 1.003 is now available.

 
Vladimir Karputov:

Version 1.003 is now available.

Please tell me where the new version is located.

 
MrShuM:

Would you be kind enough to tell me where the new version is?

I'll give you a hint: https: //www.mql5.com/ru/code/16783

2MA Bunny Cross Expert
2MA Bunny Cross Expert
  • www.mql5.com
Советник работает только в момент рождения нового бара, из настроек - только размер лота позиции: или постоянный лот (параметр "Lots" больше нуля и параметр "Risk" равен нулю) или динамический лот в процентах риска (параметр "Risk" больше нуля и параметр "Lots" равен нулю...
 
Vladimir Karputov:

Hint: https: //www.mql5.com/ru/code/16783

Thank you, and you're fun to be with)

 
Thank you, everything works fine. Keep up with the trends.
 
Code says that there is two INIT_FAILED expression not boolean. 
 
Marks Vāle :
Code says that there is two INIT_FAILED expression not boolean. 

Use version 1.003 (taken from the Russian part of the forum - https://www.mql5.com/ru/code/16783 )