Watch how to download trading robots for free
Find us on Telegram!
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
Experts

AutoSLTP - expert for MetaTrader 4

Views:
40372
Rating:
(33)
Published:
2015.10.28 15:07
Updated:
2016.11.22 07:32
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Real author:

dXerof

This EA will help you set Stop Loss and Take Profit on your open position (manual order).

EA can set SL/TP to all pairs, and you just need attach the EA on one pair only.

In the input settings, you can set single pair or all pairs. If AllPairs = True, it means EA will manage all pairs. Just attach on one chart, EA will work with all pairs.

Little Update:

name: AutoSLTP upd.mq4

input double TakeProfit=400; //40-->4 digits; 400-->5 digits
input double StopLoss=150; //15-->4 digits; 150-->5 digits

slbuy=NormalizeDouble(OrderOpenPrice()-iStopLoss*poin,digi);
tpbuy=NormalizeDouble(OrderOpenPrice()+iTakeProfit*poin,digi);
slsell=NormalizeDouble(OrderOpenPrice()+iStopLoss*poin,digi);
tpsell=NormalizeDouble(OrderOpenPrice()-iTakeProfit*poin,digi);

Input Settings:

input bool   AllPairs=True;  // True - EA manages all pairs, False - EA manages only one pair to which EA is attached
input double TakeProfit=40;  // 4 digits format, 40 (4D) or 400 (5D), just need fill 40
input double StopLoss=15;    // same as TakeProfit format
input double DurasiTime=60;  // it means EA only manages order position which OrderOpenTime is less than 60 seconds (new entry)
Trend_Catcher Trend_Catcher

The EA looks for trend using three MAs (period 200, 50, 25 or other) and opens orders using the Parabolic SAR indicator. There is martingale in an Expert Advisor, the lot is calculated in percents from a deposit depending on Stop Loss.

Instant Execution New Instant Execution New

Instant execution button to close profit orders, close all orders, auto close by trailing parameter. Last update: 21 April 2016. Prev: 8 Dec 2015

Traditional MACD with Momentum indicador and alarms Traditional MACD with Momentum indicador and alarms

Traditional MACD indicator with a Momentum indicator and alarms. Allows customization of most of the parameters without having to dive into code.

Candle SnR Candle SnR

Indicator S&R based on OHCL candles.