Watch how to download trading robots for free
Find us on Facebook!
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

Exp_CandleStop_Trailing - expert for MetaTrader 5

Views:
5431
Rating:
(24)
Published:
2013.01.18 13:00
Updated:
2016.11.22 07:32
\MQL5\Indicators\
candlestop.mq5 (6.62 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The Expert Advisor moves Stop Loss of the open position along the border of the channel built using CandleStop indicator. Stop Loss is modified only when the bar is changed based on the newly closed bar's data in case Stop Loss will be eventually pinned to the current price.

The Expert Advisor provides a possibility to display the indicator used in it on the current chart directly from the Expert Advisor. There is no need to install the indicator on the chart manually. This is quite convenient, as the indicator is displayed on the chart automatically after the Expert Advisor is installed on the chart. This indicator always has input parameters identical to the Expert Advisor's ones.

Input parameters for the Expert Advisor:

//+----------------------------------------------+
//| input parameters for the Expert Advisor      |
//+----------------------------------------------+
input uint UpTrailPeriods=5; //The period of search for high  
input uint DnTrailPeriods=5; //The period of search for low
input uint Deviation=10;     //slippage 

Fig.1 The Exp_CandleStop_Trailing Expert Advisor's working chart

Fig.1 The Exp_CandleStop_Trailing Expert Advisor's working chart 

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

The class for drawing the Fractals using the ring buffer The class for drawing the Fractals using the ring buffer

The class is designed for calculation the Fractals technical indicator (Fractals) using the algorithm of the ring buffer.

SuperWoodiesCCI SuperWoodiesCCI

The indicator realizes the trading strategy using the CCI

Exp_StepSto_v1 Exp_StepSto_v1

The Expert Advisor drawn on the basis of the signals of the StepSto_v1 stochastic oscillator

MaksiGen_Range_Move MTF MaksiGen_Range_Move MTF

The indicator draws support/resistance lines and the trend lines in the chart