Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

Views:
1080
Rating:
votes: 15
Published:
2018.03.01 10:57
Updated:
2018.06.27 12:34

The Expert Advisor was inspired by the forum topic Requests & Ideas (MQL5 only!), comment .


Description of the System

  1. The Expert Advisor only performs actions on a new bar (calculations are performed at the moment of a new bar emergence, the EA does not work inside the bar).

  2. The EA operation is restricted by operation time, which is specified in hours. For example, operation hours can be set from 8 am to 5 pm:

    8 am - operation hours - 5 pm

    New positions can ONLY be opened in working hours. POSITION CLOSING is also allowed in non-working hours.

  3. Position volume is set manually in input parameters and is always equal to a fixed amount.

  4. When to open the first trade: BUY if the 200 EMA is below the new bar. SELL is the 200 EMA is above the new bar.

  5. A position (or positions) should be closed if the NET profit (commission + swap + profit) is equal to or greater than Minimum profit (specified in the account currency).

  6. If at the opening of the next new bar trading is not in profit, we do nothing with open positions until all trades together make a total profit.

  7. If there are open positions and the total NET profit is negative, open a new position at the opening of each new bar. Continue opening new positions until the Minimum profit value is reached.

  8. When there are more than 8 open positions, the following limitations apply:

    1. We continue opening new positions similar to the first 8 positions, but now a position can only be opened if the distance between the new bar price and the last open position is no less than 10 points.

    2. If the current bar price is at a distance of 500 to 999 points from the price of the first open position, we open a new position according to the rule 8.1, but now we skip a minimum of 3 candlesticks.

    3. If the current bar price is at a distance of 1000 to 2000 points from the price of the first open position, we open a new position according to the rule 8.1, but now we skip a minimum of 6 candlesticks.

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/19655

AroonOscillator_Histogram AroonOscillator_Histogram

The AroonOscillator indicator implemented in the form of a color histogram.

Exp_ColorJFatl_Digit_Tm_Plus Exp_ColorJFatl_Digit_Tm_Plus

A trading system based on ColorJFatl_Digit indicator signals with the possibility to set a fixed position holding time.

InOutBar InOutBar

The indicator marks candlesticks with colored arrows if candlesticks of a higher timeframe selected in input parameters are higher or lower than previous candlesticks.

SVS_Trend_HTF SVS_Trend_HTF

The SVS_Trend indicator with the possibility to change the indicator timeframe in its input parameters.