OHLC Stochastic – EA MetaTrader 5

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)
Alternative:  Kaufman's AMA from wellx - indicator MetaTrader 4


For BUY, signals are opposite to SELL.

EURUSD, H12, “Every tick based on real ticks” mode:

OHLC Stochastic test


https://www.mql5.com/ru/code/22274

๐Ÿ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks