Please create an EA

MQL5 Experts Forex

Specification

Summary: This is a trading strategy designed to generate profits through rebates. It starts by opening positions in both directions, and all positions are closed at a breakeven or slight profit level of around $0 or $1, including virtual profits (based on the set TP). After that, trades follow the trend according to the pending orders. However, if positions in both directions are open, they are closed again at around $0 or $1, as initially done. Even if the position closes at breakeven due to rebates, it results in a profit. The reason for closing positions at around $0, including rebates, when both directions are open is based on the principle that one cannot predict the market direction.

Settings:

  1. Magic Number
  2. Distance
  3. Virtual Profit per Position
  4. TP A (when positions in both directions are open) (Set in USD, up to two decimal places)
  5. TP B (when a position in one direction is open) (Set in USD, up to two decimal places)
  6. Position Total SL - True, False 6-1. If False, input the number of points at which the SL should activate, based on the second order opened after the initial Buy and Sell.
  7. Trading Time Specification (separated into Start and End times)

Process:

  1. Initially, both Sell and Buy orders are opened simultaneously. A Sell Stop is placed below the Sell order based on the set distance, and a Buy Stop is placed above the Buy order. Suppose the Sell order is opened, and all positions are closed according to TP A. (For example, there will be 1 Buy and 2 Sell positions, and the balance will close at a loss. However, due to the rebate, the loss will be near $0.) The orders are closed as soon as Buy and Sell positions are mixed, not only for three positions but also from the moment they are combined. This assumes Setting 6 is True.

After the Buy and Sell orders are opened simultaneously, if an additional order is opened and the market moves in the opposite direction, all three positions will be closed with a combined loss if Setting 6 is False (as further explained in point 4).

If closed, existing pending orders should be deleted.

  1. Once the Sell Stop is opened, a Buy Stop is placed above, and another Sell Stop is placed below, based on the Sell order. When the Sell Stop is opened, the existing orders are closed for profit (based on the set TP B). If a second Sell Stop is opened, the remaining Buy Stop is canceled, and new Buy Stop and Sell Stop orders are placed based on the set distance value.

  2. The virtual profit per order (Setting 3) is applied when Buy and Sell orders are mixed.

  3. If Setting 6 is False, both Sell and Buy orders are open simultaneously, and an additional order is opened due to the Stop. The total number of orders will be 3. For example, if the Buy order is opened, there will be 2 Buy and 1 Sell orders. If the order opened by the Stop reaches a negative of around 10 points, all three orders are closed.

  4. The initial orders (Buy & Sell) are opened based on the close of the candle on the current chart.

  5. If closed in profit, the existing Stop orders are not deleted and remain pending. They are utilized to capture further profits in line with the trend. Example: If the Buy Stop is opened, new Buy Stop and Sell Stop orders are set based on that order.

  6. The trading time is set based on the server time.

  7. Information text is needed on the chart: 8-1. Number of closed orders 8-2. Number of SL orders 8-3. Amount of SL


I will provide additional examples after making a selection.


Files:

PNG
Buy_Sell.png
187.8 Kb

Responded

1
Developer 1
Rating
(288)
Projects
360
29%
Arbitration
37
27% / 65%
Overdue
10
3%
Loaded
Published: 10 codes
2
Developer 2
Rating
(50)
Projects
64
20%
Arbitration
11
27% / 55%
Overdue
5
8%
Free
3
Developer 3
Rating
(75)
Projects
80
6%
Arbitration
46
11% / 54%
Overdue
7
9%
Working
4
Developer 4
Rating
(2)
Projects
5
0%
Arbitration
3
0% / 100%
Overdue
1
20%
Working
Similar orders
Experienced Python/MT5 Developer Needed to Optimize XAUUSD Signal Engine — Increase Signal Frequency Without Sacrificing Quality 4 minutes ago Python Experts Design Strategy optimization Statistics and mathematics Python I am looking for an experienced developer specialized in Python, MetaTrader 5, algorithmic trading systems, market structure and XAUUSD, to work on an existing professional Gold/Forex AI signal
EMA Pin Bar EA 30 - 100 USD
I would like an EA that implements the strategy below: 1. It requires a 6 EMA, 18EMA, 50EMA and 200SMA 2. Trend filter: 50 is above 200 for a buy. 50 below 200 for a sell 3. FOR A BUY: After candle close, if 6 has crossed above 18 and trend filter is a buy: a. if the last candle was a pin bar (body is less than 50% of candle size, and upper wick is less than 10% of candle size) b. check if the candle is within 10
Title: Custom M5 Gold (XAUUSD Cent) Scalper EA with Daily Profit Target and Strict Risk Control 1. OVERVIEW & OBJECTIVE We need an Expert Advisor (EA) developed for MT4 and MT5 to trade XAU/USD Cent (XAUUSDc on HFM / HF Markets). The EA must operate fully autonomously on M5 charts, targeting micro-pips (3 to 5 cent movements) per trade. The core philosophy is "set-and-forget" with absolute risk protection to prevent
Hi, I’m looking for a **ready-made MT5 scalping EA specifically for Gold (XAUUSD)**. My main requirement is an **HTF scalping strategy**, so I’m looking for an existing robot that is already developed and can be tested before I make the purchase. I’m not looking to build one from scratch at this stage. I would like to first test the EA on a **demo account** to see how it performs under live market conditions and
Are you able to build one bot for stock and one for ninja trader and tell me the win rate on it. I need ninja trader bot that enter buy and exit according the move to do not stay long in the market in each entry . That can follow the smart money concept or other if you have a good one
Hi there I need an developer to create a ea for mt5 and mt4 but the ea should be an fast connect ea meaning by taping the ea then automatically it connect to mt5 chart same in mt4 It should place order using invisible buy and invisible sell when the bid price breakout in 1 point Automatically it place an order depends on which direction and invisible stop loss in points , please reply if you can
EA 35+ USD
Project Title: Development of a Custom Breakout Expert Advisor (EA) with Dynamic Trailing Stop, Advanced Security Filters, and On-Screen Dashboard for MT5 Project Description: Overview: I am looking for an experienced MQL5 developer to build a fully automated Trading Robot (Expert Advisor) for MetaTrader 5 based on a pending orders breakout strategy with strict dynamic risk management and customized time/profit
I need a TradingView Pine Script (v6) indicator that gives BUY and SELL signals in real time on the live chart. MAIN REQUIREMENT – NO REPAINTING: 1. Signals must appear only when the candle closes (barstate.isconfirmed). Example: on 1-min chart, signal for the 10:35 candle must appear at 10:36 and never disappear or move. 2. Signals on historical bars must look exactly the same as they looked live. 3. No lookahead
Project Title: Development of a Custom Breakout Expert Advisor (EA) with Dynamic Trailing Stop and On-Screen Dashboard for MT5 Project Description: Overview: I am looking for an experienced MQL5 developer to build a fully automated Trading Robot (Expert Advisor) for MetaTrader 5 based on a pending orders breakout strategy with strict dynamic risk management. The EA must be highly optimized, bug-free, and follow the
I am looking for an experienced developer to build a professional web-based trading performance dashboard connected to an MT5 trading account and/or FX Blue. The dashboard should automatically collect trading data and display: • Daily P&L calendar – profitable days green, losing days red and no-trade days grey • Equity/growth curve • Drawdown curve • Initial capital and current balance • Net profit and percentage

Project information

Budget
50+ USD