The author of the ideaΒ –Β
mq5 code authorΒ –Β
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)
For BUY, signals are opposite to SELL.
EURUSD, H12, “Every tick based on real ticks” mode: