Join our fan page
- Published by:
- Vladimir Karputov
- Views:
- 3983
- Rating:
- Published:
- Updated:
-
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
10pipsOnceADayOppositeLastNHourTrend
10 pips per day opposite to the "yesterday's trend".
SmoothAlgorithms
A library of averaging algorithms, the algorithms were described in details in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers"
e-Smart_Trailing
Modification of StopLoss of any positions. Trailing. Trailing.
TriXCandleKeltner
The TriX indicator in a candlestick form with the Keltner channel calculated relative to TriX averaging.