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

2016.03.11 09:29

Script to StopLoss and TakeProft in Pips, use your EA Number - script for MetaTrader 4

| English Español Português 日本語 Deutsch

votes: 7
stoploss.mq4 (5.51 KB)view

Script that contains both Stop Loss as Take Profit.

Getting your choice only use stop loss or stop loss with take profit.

Real author:

Valdir Nogueira

This script is recommended for robots that do not have stop loss, mainly scalpers and martingales.

It will only affect the robots corresponding to the number entered in the Number of EA field.

Below is description of the parameters:

Parameters Screen


  • Number of EA: Number yours robot used in the graphic.
  • Stop Loss in Pips: Value of Stop Loss in Pips.
  • Use Take Profit: Yes or No, you choose to use the option to add also Take Profit for your orders .
  • Take Profit in Pips: If you use take profit is true, he had taken as the basis of the number Pips added to the field.
  • Time of Execution, in seconds: Very important parameter, if your robot is scalper, which opens many transactions, set the seconds to a value of approximately 3 seconds. Always use the value greater than 1 second.
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.

Yen Trader Yen Trader

Expert Advisor to trade Yen Crosses based on Major Pairs and USDJPY divergence/convergence.

Example of MACD Automated Example of MACD Automated

Code example of MACD automated with advanced money management function.