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

2008.09.09 09:10
Scripts

TakeProfitMove - script for MetaTrader 4

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

Views:
9101
Rating:
votes: 10


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

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


//+------------------------------- FIND OUT ABOUT THE LIMITS OF YOUR DC -----+
// if(Distance<10) Dist=10;
// else 
Dist=Distance;
//+--------------------------------------------------------------------------+


remove the comment in the block and set the Dist value.


//+------------------------------- FIND OUT ABOUT THE LIMITS OF YOUR DC -----+
if(Distance<10) Dist=10;
else 
Dist=Distance;
//+--------------------------------------------------------------------------+


Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/8408

GordagoElder GordagoElder

Indicator GordagoElder.

SteelBlue SteelBlue

Indicator WolfWave. It is written on the basis of the ZigZag.

#MAMA #MAMA

Indicator #MAMA.

Aroon Horn Aroon Horn

Indicator Aroon Horn.