lacus tstopand be
Info
The lacus tstopand be is a Expert Advisor for MetaTrader 4 that this expert advisor is for manual trading only. it places stop loss and take profit for buy, sell, buy limit, buy stop, sell limit and sell stop orders.
Usage
This tool is typically used for automated trading on major forex pairs and gold.
Platform
This Expert Advisor works exclusively on MetaTrader 4 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL4/Experts folder via File ? Open Data Folder in MetaTrader 4.
How to Install and Use lacus tstopand be
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
What this tool does
this expert advisor is for manual trading only.
Typical Use Case
This Expert Advisor excels in automated trading and technical analysis on MetaTrader 4.
Compatible Platform & Setup
This Expert Advisor works on MetaTrader 4. Place the file in the MQL4/Experts folder and restart the terminal.
Description & Settings
Related: basic at r based take and stop expert adviser - another powerful expert for MetaTrader 4 traders.
this expert advisor is for manual trading only. it places stop loss and take profit for buy, sell, buy limit, buy stop, sell limit and sell stop orders. it contains break even and trailing stop function. works with 4 and 5 digits brokers.
Also recommended: code for counting open orders by order type individually - similar expert with strong performance on MetaTrader 4.
input parameters:stoploss: stop loss in pips.
takeprofit: take profit in pips.
trailingstart: distance from open price in our favor. when trailing starts, if distance = 0, trailing stop starts immediately if price goes in our favor.
trailingstop: distance from current price in pips.
breakevengain: go to break even after reaching x pips in our favor.
breakeven: number of pips locked in profit.
example:
we open a buy order, the expert advisor on next tick sets the predefined stop loss and take profit values (40 pips sl and 200 pips tp). price goes on our favor, reaching 25 pips in profit, the ea sets break even to +10 pips. price goes upper, and our ea changes the stop loss value if position reaches +30 pips or more. our trailing stop is 20 pips from actual price.
thank you for your opinions and comments. if somebody have a good idea to my expert advisor, please write a comment.
percentofbalance
— closes all opened orders if account profit reaches the x percent of balance.
profitamount
— closes all opened orders if account profit reaches the specified amount, for example, 12 euros. it closes all opened orders, not only profitable.
orderprofit
— closes order on actual pair if order profit reaches the specified amount, for example, 4 euros.
stealth mode
— if true, ea only calculates the stop loss, break even, trailing stop and take profit values, controls these values, and if price reaches the sl or tp, closes the order. ea in this mode doesn't not send these values to the broker.
i need somebody to test this ea in demo, because i don't have enough time for it.
i need to test stealth mode first.
You may also like: buy sell stop buttons - excellent alternative for expert users on MetaTrader 4.
Source Code
#property copyright "robotfx"
#property link "https://robotfx.org"
#include <stdlib.mqh>
#include <winuser32.mqh>
extern double stoploss=40;
extern double takeprofit=200;
extern string closefunctions="closefunctions";
extern double percentofbalance = 1; //close all orders if profit reached the x percent of balance or
extern double profitamount = 12; //close all orders if profit reached the x profit amount in acc currency, for example 12 euros.
extern double orderprofit = 4; //close market order if profit reached x profit amount, for example 4 euros
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.