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

Martingale Bone Crusher - expert for MetaTrader 4

Views:
28413
Rating:
(27)
Published:
2018.05.07 15:18
Updated:
2024.03.12 23:07
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The EA uses two modes of martingale strategy:


Strategy 1

The EA enters trades according to the price that is above or below Moving Average. If we lose a trade then the EA will take a new trade in the opposite direction with a multiplied lot size.


Strategy 2

The EA enters trades according to the price that is above or below Moving Average. If we lose a trade then the EA will take a new trade with a multiplied lot size, according to the price that is above or below Moving Average regardless if the previous trade was buy or sell.

This Martingale EA can work on all pairs and all timeframes.

Best timeframe is daily.

Start with 0.01 lot.

 

USEMOVETOBREAKEVEN  system functions like a stop loss

But a one-time function with a smaller value than the subsequent Stop Loss value to lock minimal profit and avoid loss if the price goes against you.

If you have reached a certain value of pips with the direction of the trade -

  • WHENTOMOVETOBE - When to move break even (values: 10-100).

So how many pips would you like to move the stop loss above the price line of the open trade-

  • PIPSTOMOVESL - How much pips to move stop loss (values: 10-100).

This EA trades only with the price of open candle!

You need to perform back test with "open prices only" option,


Variables


    •  Use_TP_In_Money- Use Take Profit In Money (values:true/false).
    •  TP_In_Money- Take Profit In Money   (values: 10-100).
    • Use_TP_In_percent- Use Take Profit In Percent (values:true/false).
    • TP_In_Percent- Take Profit In Percent (values: 10-100).
    • ------------[Money Trailing Stop For Multiple Trades]----------------------
    • Enable_Trailing-Enable_Trailing with money  (values:true/false).
    • Take Profit In Money (in current currency) (values: 25-200).
    • Stop Loss In Money(in current currency) (values: 1-20).
    • --------------------------------------------------------------------------------------
    • Strategy - strategy 1,strategy 2
    • USEMOVETOBREAKEVEN - Enable "no loss" break even system (values: 0-1).
    • WHENTOMOVETOBE - When to move break even (values: 10-100).
    • PIPSTOMOVESL - How much pips to move stop loss (values: 10-100).
    • Multiply - Multiply for Martingale (values: 2-4).
    • Lotsize - Lot size (values: 0.01-10).
    • TrailingStop-set a value from 10 to 100 to activate trailing stop loss & take profit, "0" will not activate trailing stop loss.
    • Stop_Loss - Stop Loss pips distance (values: 10-100).
    • Take_Profit - Take Profit pips distance (values: 10-100).
    • MA_period - Moving Average period (values: 10-200).
    • MagicNumber - Magic number (values: 1-100000).
    • Start - Start hour(values: 0-24).
    • End - End hour(values: 0-24).
    • Maximum_loss - Maximum loss(values: 0-10)
    • WaitTime - Wait time for loss in minutes (values: 0-999999)
How to perform back test:https://bit.ly/2CD7XWD

1

2

3


Hourly Pivot Points with Color Filling Hourly Pivot Points with Color Filling

Calculate Pivot Points based on H1 bar, according to normal formula and Fibonacci, with color filling.

RSISignal RSISignal

This indicator is based on original RSI, but more features are added to general signals and watch the strength of the price movement. The main purpose is to general buy/sell signals using smoothed RSI and its MA.

Record IsConnected, Spread, Stop, FreezeLevel Record IsConnected, Spread, Stop, FreezeLevel

EA is run say once every minute and writes the status of IsConnected, spread, stop and freeze level to a file.

Average Volume per Hour Average Volume per Hour

Calculate the average volume per hour in a 1 hour chart.