거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
스크립트

The scripts for opening short positions - MetaTrader 5용 스크립트

조회수:
12893
평가:
(43)
게시됨:
2013.03.13 09:51
업데이트됨:
2016.11.22 07:32
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

These scripts are designed to sell with fixed values of Stop Loss and Take Profit in points from the current price. There are four variants of scripts which can be divided into two groups:

  1. Scripts for brokers which have nonzero spread and admit the ability to set Stop Loss and Take Profit simultaneously performing a deal;
  2. Scripts for brokers which may have zero spread, otherwise, it is not recommended to set Stop Loss and Take Profit simultaneously opening a position. At first, these scripts open positions without orders, and then modify them changing Stop Loss and Take Profit.

The first group scripts are OpenSellPosition.mq5 and OpenSellPosition_X.mq5. The second group of scripts have the ending in the name of the ECN files. They are OpenSellPosition_ECN.mq5 and OpenSellPosition_X_ECN.mq5.

All scripts are designed to sell with fixed values of Stop Loss and Take Profit in points from the current price.

The main advantage of OpenSellPosition and OpenSellPosition_ECN scripts is the ability to fix deal's volume depending on the size of the whole deposit using the MM (Money Management) script input parameter which defines equity volume rate participated in a deal to the whole deposit equity:

OpenSellPosition and OpenSellPosition_ECN scripts input parameters:

//+----------------------------------------------+
//| SCRIPT INPUT PARAMETERS                      |
//+----------------------------------------------+
input double  MM=0.1;       // Money Management
input int  DEVIATION=10;    // Price deviation
input int  STOPLOSS=300;    // Stop Loss in points from the current price
input int  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

The main advantage of OpenSellPosition_X and OpenSellPosition_X_ECN scripts is the ability to fix deals' losses when Stop Loss triggered depending on the whole deposit size using LossMM script input parameter which defines equity volume rate lost when Stop Loss triggered to the whole deposit equity:

OpenSellPosition_X and OpenSellPosition_X_ECN scripts 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

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/1575

The scripts for opening long positions The scripts for opening long positions

These scripts are designed to buy with fixed values of Stop Loss and Take Profit in points from the current price

MinPriceChange MinPriceChange

The indicator of the minimum sum of price changes which forms signals after flat movements and before potential breakthrough in this or that side

TrendStrength TrendStrength

The indicator to define the global trend.

SmPriceBend-T01 SmPriceBend-T01

The indicator of the first price change derivative or simply trend speed and sign.