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

Executor Candles - expert for MetaTrader 5

Published by:
Vladimir Karputov
Views:
4360
Rating:
(9)
Published:
2018.06.18 10:32
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Idea by: Alex.

MQL5 code by: Vladimir Karputov.

The EA trades on several candlestick patterns. For positions BUY and SELL, there must be the separate settings of Take Profit, Stop Loss, and Trailing. There must not be no more than one position in the market, so the EA can run on both hedging and netting accounts.

Along with determining the patterns, there is one setting (Off "Main timeframe") that can enable/disable determining a trend by bar #1 on Main timeframe. An example of how the Off "Main timeframe" setting influences for EURUSD,H1:

Executor Candles, H1, Off Main timeframe true

Fig. 1. Parameter "Off "Main timeframe"" == true

Executor Candles, H1, Off Main timeframe false

Fig. 2. Parameter "Off "Main timeframe"" == false


Input parameters

  • Stop Loss Buy - Stop Loss for BUY positions;
  • Take Profit Buy - Take Profit for BUY positions;
  • Trailing Stop Buy - Trailing for BUY positions;
  • Stop Loss Sell - Stop Loss for SELL positions;
  • Take Profit Sell - Take Profit for SELL positions;
  • Trailing Stop Sell - Trailing for SELL positions;
  • Trailing Step - trailing step (common for BUY and SELL);
  • Lots - position volume, permanent (if the value is above zero, then the "Risk" parameter MUST be equal to zero);
  • Risk - the position volume is calculated automatically, in the risk percents (if the value is above zero, then the "Lots" parameter MUST be equal to zero);
  • Off "Main timeframe" - disabling parameter "Main timeframe";
  • Main timeframe - the main timeframe to determine the trend;
  • magic number - unique identifier for the EA.

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/20824

Night Flat Trade Night Flat Trade

The EA works in the quietest hours (upon closing the American session and before opening the Asian session).

ASCtrend_NRTR_HTF ASCtrend_NRTR_HTF

Indicator ASCtrend_NRTR with the timeframe selection option available in input parameters, alerting and sending e-mails and push-messages when the indicator changes its color.

MACD and SAR MACD and SAR

A trading system based on indicators MACD and SAR. The signal receiving formula is completely optimizable.

ATR_Normalize_Histogram ATR_Normalize_Histogram

A typical oscillator using Average True Range in form of a multicolor histogram.