Watch how to download trading robots for free
Find us on Twitter!
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

Russian20-hp1 - expert for MetaTrader 5

Published by:
Vladimir Karputov
Views:
4342
Rating:
(16)
Published:
2018.09.27 16:11
Russian20-hp1.mq5 (35.34 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Idea byScriptor

MQL5 code author: barabashkakvn

The Expert Advisor is based on the trend indicator iMA (Moving Average, MA) and the iMomentum oscillator (Momentum). It can work on every tick (Work on every tick = "true") and only at the new bar emergence time (work on every tick = "false").

The work timeframe parameter means the timeframe, on which indicators are created and the bar close prices of which are used.

For Buy and Sell positions, you can separately set Stop Loss (Stop Loss BuyStop Loss Sell) and Take Profit (Take Profit Buy, Take Profit Sell). If you want to disable any of these options, set the appropriate parameter to "0.0".


Trading Signals

If there are no open positions, then position opening signals can be checked:

  • BUY opening signal: (Close of bar #0 > Moving Average on bar #0) AND (Momentum on bar #0 >100.0) AND (Close of bar #0 > Close of bar #1)
  • SELL opening signal: (Close of bar #0 < Moving Average on bar #0) AND (Momentum on bar #0 <100.0) AND (Close of bar #0 < Close of bar #1)

When there are open positions, the possibility of closing is checked:

  • A signal to close BUY: (Momentum on bar #0 <100.0)
  • A Signal to close SELL: (Momentum on bar #0 >100.0))

The results of optimization of work on every tick and work timeframe for EURUSD are provided as default EA parameters. Results of EURUSD testing with default parameters:

Russian20-hp1


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

LinearRegressionChannel_Cloud LinearRegressionChannel_Cloud

The linear regression channel, which saves its values ​​in the indicator buffers and fills the channel background with color

StepMA_3D_v3 StepMA_3D_v3

A trend indicator with three moving averages having different periods, using the Average True Range in calculations.

Trendless_OS Trendless_OS

The Trendless OS DiNapoli indicator

Valid_Swing_HighLow Valid_Swing_HighLow

The Valid Swing HighLow indicator