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:
7183
Rating:
(36)
Published:
2013.02.22 07:12
Updated:
2016.11.22 07:32
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The OpenBuyPosition_X script is designed to buy 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 fix deals' losses when Stop Loss triggered depending on the size of the whole deposit using LossMM script input parameter which defines equity volume rate lost when Stop Loss triggered to the deposit equity.

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 Ltd.
Original code: https://www.mql5.com/ru/code/1541

Skype Control Library Skype Control Library

Library to work with Skype.

FX_Sniper_Ergodic_CCI FX_Sniper_Ergodic_CCI

The ergodic CCI.

OpenSellPosition_X OpenSellPosition_X

The OpenSellPosition_X script is created to sell 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.

b-clock b-clock

Show minutes and seconds left before new candle is appeared.