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.02.22 07:12
Scripts

OpenSellPosition_X - script for MetaTrader 5

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

Views:
4911
Rating:
votes: 30

The OpenSellPosition_X script is created to sell at fixed values of Stop Loss and Take Profit in points from the current price.

The main advantage of this script is the ability to set the amount of losses when the stop loss triggers as a percentage of the deposit, using the LossMM input parameter of the script. Set the StopLoss in points and the amount of loss as a percentage of the deposit - the script will automatically calculate the lot size.

Script input parameters: 

//+----------------------------------------------+
//| SCRIPT INPUT PARAMETERS                      |
//+----------------------------------------------+
input double  LossMM=0.1;   // Losses from balance when Stop Loss triggered
input uint DEVIATION=10;    // Price deviation
input uint STOPLOSS=300;    // Stop Loss in points from the current price
input uint TAKEPROFIT=800;  // Take Profit in points from the current price
input uint RTOTAL=4;        // The number of retries in unsuccessful deals
input uint SLEEPTIME=1;     // Pause time between retries in seconds

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

OpenBuyPosition_X OpenBuyPosition_X

The OpenBuyPosition_X script is designed to buy at fixed values of Stop Loss and Take Profit in points from the current price. Position volume is determined on the basis of the level of losses.

Skype Control Library Skype Control Library

Library to work with Skype.

b-clock b-clock

Show minutes and seconds left before new candle is appeared.

Exp_ToCloseLoss Exp_ToCloseLoss

The Expert Advisor to perform global Stop Loss on all open positions