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

2012.09.21 09:19
Scripts

ClosePosition - script for MetaTrader 5

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

Views:
4458
Rating:
votes: 27

ClosePosition script is designed for closing open positions with the volume depending on their size.

Input parameters:

//+----------------------------------------------+
//| INPUT PARAMETERS OF THE SCRIPT               |
//+----------------------------------------------+
input double VOLUME=1.0;    // The volume of the closed position in relation to the initial
input int  DEVIATION=10;    // Price deviation
input uint RTOTAL=4;        // The number of repeats on unsuccessful transactions
input uint SLEEPTIME=1;     // Pause time in seconds between repeats

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

InvertPosition InvertPosition

The script is developed for reversing open positions with fixed Stop Loss and Take Profit values in points from the current price and the volume depending on the reversed position.

AverageSizeBar AverageSizeBar

The average candle size for a certain period.

Moving Average: 3-Pole Butterworth Filter Moving Average: 3-Pole Butterworth Filter

Moving Average: 3-Pole Butterworth Filter. The indicator is based on the code of Witold Wozniak.

EA_CCIT3 EA_CCIT3

The Expert Advisor is based on CCIT3_Simple and CCIT3_noReCalc. Crossing of the indicator's zero line is used for trading activity.