Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Pure_Martingale - expert for MetaTrader 4

Views:
60547
Rating:
(25)
Published:
2012.03.19 07:15
Updated:
2016.11.22 07:32
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This is a Martingale system that has random entry, you can program your own entry like you want for better results.

I was focused only on martingale system, not only the lot size is rising but also the take profit distance, so you can withstand more consecutive losses.

To work properly set the account History in terminal to show all history.

Input parameters:

Martingale settings:

  • sl_tp = 20; - stop loss and take profit in pips;
  • lotsMultiplier = 1.5; - lot multiplier, if a trade was loss the next trade lot size will be lotsMultiplier times larger;
  • distanceMultiplier = 1.5; - take profit and stop loss multiplier, after a los trade the take profit distance is distanceMultiplier times larger;
  • Lots = 0.03; - the lot size in first trade;
  • MaxSlippage = 3; - the maximall allowed slippage in pips;
  • magicNumber = 1212123; - special number to avoid colliding with another EA or manual trades;

Trading Hours:

  • useTradingHours = false; - if it is true, the system opens trades only in defined time;
  • StartTime = "06:00"; - start time of trading;
  • StopTime = "18:00"; - end time of trading;
  • GMT_Offset = 0; - GMT offset;

Trading Days:

  • Monday = true;
  • Tuesday = true;
  • Wednesday = true;
  • Thursday = true;
  • Friday = true;
  • Saturday = true;
  • Sunday = true;

View settings:

  • showMenu = true; - if true, EA shows on graph information about open trades, lots and profit;
  • menuColor = Blue; - color of menu text;
  • variablesColor = Red; - color of variables;
  • font = 10; - font size;
Fractal ZigZag (never repaints) Fractal ZigZag (never repaints)

This indicator shows signals triggered using Fractals and the original ZigZag indicator. Signals are never -ever- repainted and is an useful tool to study the real behavior of the ZigZag indicator.

Double ZigZag (no repaint) Double ZigZag (no repaint)

This indicator shows signals from two different Zigzags without repainting, and allows you to study the real behaviour of the zigzag indicator as a trading tool over time.

Average Daily Range Average Daily Range

TheGreedyPig Average Daily Range Indicator calculates 5, 10, 20 days and shows them on the chart. I found this on a Forum, updated, modified the Indicator I found.

ACC+BAL+MARG-INDI ACC+BAL+MARG-INDI

Account Balance, Equity, Margin, Free Margin + Account Profit: position anywhere on chart - hide any item - enhanced user preference options.