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 5 Expert Advisor | OHLC Stochastic

The author of the idea - Ilnaz

mq5 code author - barabashkakvn

The EA performs operation inside a bar (on every tick). The EA opens only one position at a time, therefore it is able to work both on hedging and netting accounts. Trailing is applied to a position - during the first modification, the position is moved to a guaranteed breakeven.

Trading signals

SELL open signal (if there is an open BUY position, close BUY and open SELL at once)

  • main Stochastic line on bar #0 (the value of 87.44 in the figure) is below the Stochastic signal line on bar #0  (the value of 91.78 in the image)
  • at least one of the Stochastic lines is above STO level UP (the value of 80.00 in the figure)

MetaTrader Experts, Indicators, Scripts and Libraries

For BUY, signals are opposite to SELL.

EURUSD, H12, "Every tick based on real ticks" mode:

MetaTrader Experts, Indicators, Scripts and Libraries

22274