Experts: Demarker Martingale

To add comments, please log in or register
Automated-Trading
145424
Automated-Trading  

Demarker Martingale:

This Martingale EA trades with "Demarker" indicator, it is considered relatively safe because it takes a single trade at a time.

Demarker Martingale

Author: Aharon Tzadik

NAZMTAZ
3665
NAZMTAZ  

Hello Aharon,

Thanks for sharing. Can't trade the EA as there is an 'error' message in the experts folder. Please chk. & advise.

Zee Zhou Ma
1895
Zee Zhou Ma  

For me, this is the code that breaks:

int ratio=(int)MathRound(volume/volume_step);
   if(MathAbs(ratio*volume_step-volume)>0.0000001)
     {
      Print("Volume is not a multiple of the minimal step SYMBOL_VOLUME_STEP=%.2f, the closest correct volume is %.2f",
            volume_step,ratio*volume_step);
      return(false);
     }

Commenting out this code allows the expert adviser to work smoothly until ..... you go .. lolx.  You get the drift.

Anyway, I have put 4 stars for the author who has put in such a great effort to this code. It looks promising at first, and can be further improved though to get 5 stars.
Aharon Tzadik
22825
Aharon Tzadik  
NAZMTAZ:

Fixed.

Aharon Tzadik
22825
Aharon Tzadik  
Zee Zhou Ma:

Hello

The problem was fixed.

I'm sorry to disappoint you. I did not write that code

  This block is ready in advance and copied it from here:

https://www.mql5.com/en/articles/2555

The checks a trading robot must pass before publication in the Market
The checks a trading robot must pass before publication in the Market
  • www.mql5.com
Before any product is published in the Market, it must undergo compulsory preliminary checks, as a small error in the expert or indicator logic can cause losses on the trading account. That is why we have developed a series of basic checks to ensure the required quality level of the Market products. If any errors are identified by the Market...
To add comments, please log in or register