Join our fan page
- Published by:
- Vladimir Karputov
- Views:
- 3541
- Rating:
- Published:
- 2017.03.02 12:11
- Updated:
- 2018.02.15 18:03
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Author of the idea — Skoch, author of the MQL5 code — barabashkakvn.
Opens a SELL position on each bar, if Close of the 1st bar > Close of the 3rd bar. Opens a BUY position on each bar, if Close of the 3rd bar > Close of the 1st bar.
If you want to change the order opening condition, it can be easily done by changing the condition in just one line:
if((iClose(3)>iClose(2)) && (iClose(1)<iClose(2)))
.
.
.
//--- SELL
if((iClose(3)>iClose(2)) && (iClose(2)<iClose(1)))
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/17475

10 pips per day opposite to the "yesterday's trend".

A library of averaging algorithms, the algorithms were described in details in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers"

Modification of StopLoss of any positions. Trailing. Trailing.

The TriX indicator in a candlestick form with the Keltner channel calculated relative to TriX averaging.