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
Views:
17144
Rating:
(17)
Published:
2008.09.12 06:16
Updated:
2014.04.21 14:53
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance


Depending on whether the values of the UpDoun = true or = false, the script either drags the StopLoss closer to the market or pushes it away from the market holding the same Distance in points.

It thoroughly takes the place of trailing stop.

If a DC limits placing the Stops and Limits "for the market" (usually it is 10 points) you should


//+------------------------------- Detremine the limit of your DC -----+
 
// if(Distance<10) Dist=10;
 
// else 
 
Dist=Distance;
 
//+------------------------------------------------------------------+


delete the comment in the block and specify the necessary value of the Dist


//+------------------------------- Determine the limit of your DC -----+
 
if(Distance<10) Dist=10;
 
else 
 
Dist=Distance;
 
//+------------------------------------------------------------------+


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

Metatrader Expert Advisor e-Regr  and Metatrader  Indicator i-Regr Metatrader Expert Advisor e-Regr and Metatrader Indicator i-Regr

Regression Channel Indicator and Expert Advisor

Open SELL Open SELL

The script opens a SELL position with the specified part of the FreeMargin.

CloseAllBuySell CloseAllBuySell

The script closes all opened Buy and Sell positions in the active window.

Fisherorg_v1 Fisherorg_v1

Indicator Fisherorg_v1.