Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2013.01.18 13:00

Exp_CandleStop_Trailing - expert for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

votes: 18
candlestop.mq5 (6.62 KB)view

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 Software Corp.
Original code:

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