Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

OzFx - expert for MetaTrader 5

Published by:
Vladimir Karputov
Views:
3164
Rating:
(24)
Published:
2017.11.03 12:21
Updated:
2018.02.27 15:25
OzFx.mq5 (43.54 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Author of the idea:  Yuri, mq5 code author: barabashkakvn.

Description of generation of position open signals:

  • Stoh_main_1 - the value of Stochastic Oscillator on bar #1.
  • InpStochasticLevel - input for Stochastic level.
  • AC_1 - the value of Accelerator Oscillator on bar #1.
  • ACPrev_2 - the value of Accelerator Oscillator on bar #2.

BUY signal - when Stochastic Oscillator on bar #1 is greater than the Stochastic level input and Accelerator Oscillator on bar #1 is greater than Accelerator Oscillator on bar #2. In this case, Accelerator Oscillator on bar #1 should be above zero, and Accelerator Oscillator on #2 should be below zero:

if(Stoh_main_1>InpStochasticLevel && AC_1>ACPrev_2 && AC_1>0 && ACPrev_2<0 && count_buys==0)
...

SELL signal - when Stochastic Oscillator on bar #1 is less than the Stochastic level input and Accelerator Oscillator on bar #1 is less than Accelerator Oscillator on bar #2. In this case, Accelerator Oscillator on bar #1 should be below zero, and Accelerator Oscillator on #2 should be above zero:

if(Stoh_main_1<InpStochasticLevel && AC_1<ACPrev_2 && AC_1<0 && ACPrev_2>0 && count_sells==0)
...

An example of a SELL signal:

OzFx signal SELL

When a signal is received, we open five positions with the same lot. The first position has Stop Loss and Take Profit equal to zero. All subsequent positions have equal Stop Loss and each one has an increasing Take Profit with the step of the input Take Profit (in pips).

Testing results on all symbols on PERIOD_D1:

OzFx optimization results

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/18827

Trade in Channel Trade in Channel

The Price Channel trading system.

Mikahekin_System Mikahekin_System

The indicator implements a breakout system using the Mikahekin indicator channel.

Nevalyashka Nevalyashka

We open a new position opposite to the previous one. Inputs only contain Stop loss, Take Profit and the minimum lot.

KoliErBands KoliErBands

Another version of Bollinger Bands using as the middle line the average of the High and Low over a selected period.