Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Metatrader 4 Experts | gazonkos | MQL5 Code

Explore the latest free tools from the MQL5 community. Here's a new indicator, expert advisor, or script for MetaTrader.

Image for gazonkos

Trade rules of the «Gazonokosilka» system:
1. Enter on the rollback of price movement
2. Exit by StopLoss and TakeProfit

Classic MACD strategy made fully automatic – the MACD Expert Advisor for MT4 handles it all. Check it out.

In such a manner, firstly, it is necessary to detecet the pirce movement or impulse (many variants can be here). Then wait for the rollback of the price (also many variants) and enter the market.

The EA is developed for testing on EUR/USD H1 and intended for experimenting with the «Gazonokosilka» trading system. Since the price movement is determined inside the bar when exeprt is working, the testing must be performed on the ALL TICKS model!!! This is very important.

I represent you the whole code of the expert advisor written in MQL4. The code is well commented and structured, so even an apprentice trader will be able to understand it. You can find the more detailed description of the EA in the article Проект - "Газонокосилка". Советник "gazonkos". (Project - "Grass-cutter. EA ''gazonokos".) published on my website.

Input parameters (external variables) of the EA:

magic – magic number, the EA works only with its own orders using it.
TakeProfit - TakeProfit level in points. It is specified for every order when opening them.
Otkat - The value of the rollback in points. When the price rolls back by this value, the EA passes to the state of opening a trade.
StopLoss - StopLoss level in points. Just the same as TakeProfit, it is specified when opening a position.
t1 – the number of the bar, that takes part in determining the price movenment.
t2 -
the number of the bar, that takes part in determining the price movenment.
delta – the value used when determining the impulse of the price movement.
lot - The size of the position.
active_trades - The maximum number of simultaneosuly opened orders.

Complement community code with advanced automation from RobotFX.

8247

Best MetaTrader Indicators + Profitable Expert Advisors