Join our fan page
- Published by:
- Vladimir Karputov
- Views:
- 1154
- Rating:
- Published:
- 2025.04.04 10:53
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Author of the idea - alex
mq5 code author - barabashkakvn
ATTENTION: Expert Advisor ONLY for hedge accounts!
The Expert Advisor opens two multidirectional positions. As soon as both positions are closed (by triggering Stop Loss or Take Profit), two multidirectional positions will be opened again on a new bar.
From the parameters only Stop Loss and Take Profit are available. No trailing and no indicators are used.
USDJPY, H1:
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/23628

This Bot detects the open of a new candle on any set timeframe, thereby making it easier to run a one-time code, place trades and call other functions. The code is written in the OnTick() function.

Detecting the start of a new bar or candle in an Expert Advisor's OnTick() event handler.

Trading system by iMA indicator (Moving Average, MA). Development of MA Trend.

Construct a moving line with a polynomial of 4 degrees. Extrapolates the sinusoidal and its axial. The constructed lines remove one value at each bar and a sliding line of extrapolated values is constructed which is not redrawn.