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.18 13:36
Scripts

SetBuyStopOrder - script for MetaTrader 5

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

Views:
2254
Rating:
votes: 18

SetBuyStopOrder script is developed for placing a BuyStop order with fixed trigger levels, Stop Loss and Take Profit levels in points from the current price. The main advantage of this script is its ability to fix a deal volume, which depends on the entire deposit size, using MM (Money Management) script input parameter. This script determines a ratio between the amount of funds involved in the deal and all the funds of the deposit.

The script input parameters:

//+----------------------------------------------+
//| INPUT PARAMETERS OF THE SCRIPT               |
//+----------------------------------------------+
input double  MM=0.1;       // Money Management
input uint  LEVEL=300;      // Trigger level in points from the current price
input uint  STOPLOSS=300;   // Stop loss in points from the trigger level
input uint  TAKEPROFIT=800; // Take profit in points from the trigger level
input uint  EXPIRED=0;      // The duration of the order in hours (0 - without time of cancellation)
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/975

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

Auto Fibonacci Retracement Auto Fibonacci Retracement

Automatically draws Fibonacci retracements on chart.

Example of A Simple Breakout Trading Robot Example of A Simple Breakout Trading Robot

Example of a simple breakout trading robot. There are a lot of breakout methods, but this is the simplest one as I think. Please see the attached images to visualize what is the breakout trading...