Adding 2 functions to existing EA ( limiting number of order ,partial close) price negotiable

仕事が完了した

実行時間3 日
開発者からのフィードバック
Great customer !
依頼者からのフィードバック
Very supportive and patient developer!

指定

Hi, this should take very little of your time. price is negotiable depending on the finish of the EA

I would like to add the following 2 function to the EA.
1. the partial open/close
2. Limiting the number of open order

For your reference, following is the logic and how the current EA work. (refer to source code attached)

Long

open
- long when the low(1) is below the long-break-out line and low(0) is above the long-break-out line (the order is executed a the next bar or executed at the current bar if high(0) is apart from the break-out line for a certain distance
close
-take profit at certain pips
-close at short-break-out line

Short

Open
-Short when low(1) is above the short-break-out line and current price(bid) cross below the short-break-out line
close
-take profit at certain pips
-close at long-break-out line

Alert function
Email/Alert notification for error/open order.

The break out line/ take profit pips are being manually input as Extern variables


The problem I am having now is that the program seems to open multiples orders despite me trying to limit the number of open order to 1 or 2 at times per currency pair/chart.

The current EA seems to work fine with the system tester (only sending one order at time ) but once I attach it to the live trading chart, it starts sending multiple orders until the margin become in sufficient.

Followings are how I wish the EA to be modified into

Requirements

1. Limiting the open order function

2. Partial close/ open function as described (refer to illus)
3. Can be used by multiple charts ( same currency-pair /same or different time frames)

 

 

 

Long

open  (open whenever the condition is fuldilled and the number of open order is less than the predetermined number)
long when the low(1) is below the long-break-out line and low(0) is above the long-break-out line (the order is executed a the next bar or executed at the current bar if high(0) is apart from the break-out line for a certain distance

close condition 1 (close 1/3)
take profit at certain pips (lets say 20 pips)
close condition 2 (close 1/3)
take profit at certain pips (lets say 40 pips)

close condition 3 (close all)
close with the same condition as Short (crossing the short-break-out line)

 

Short

Open(open whenever the condition is fuldilled and the number of open order is less than the predetermined number)
Short when low(1) is above the short-break-out line and current price(bid) cross below the short-break-out line

close condition 1 (close 1/3)
take profit at certain pips (lets say 20 pips)

close condition 2 (close 1/3)
take profit at certain pips (lets say 40 pips)

close condition 3 (close all)
close with the same condition as Long (crossing the short-break-out line)

Alert function will also continue to work


example (refer to illustration)

Long order opened for 3 lots

closed with condition 1 for 1 lot
closed with condition 2 for 1 lot
closed with condition 3 for the rest

 


ファイル:

PNG
sys_re1.png
32.6 Kb

応答済み

1
開発者 1
評価
(84)
プロジェクト
149
31%
仲裁
32
34% / 41%
期限切れ
43
29%
類似した注文
I am looking for an experienced MQL4/MQL5 developer to build a custom MT4 indicator from scratch or cracking my ex4 file that i provide to you. I already have an existing indicator (EX4) which produces highly accurate buy/sell signals. I want a similar indicator developed based on its observable behavior and signal structure. my existing indicator is pc id protected so you have to do PC ID security bypass and source
RSI indicator 130 - 150 USD
The Relative Strength Index (RSI) is a technical momentum indicator measuring the speed and change of price movements, scaled from 0 to 100 to identify overbought (>70) or oversold (<30) conditions. Developed by J. Welles Wilder Jr., it helps traders spot potential trend reversals or corrections.Imagine a stock, XYZ, is trending upwards.Overbought Signal: The price increases sharply, and the RSI rises to 75. This
📌 Project Overview: I need a full Smart Trade Management System for MetaTrader 4/5. This is a complete trading ecosystem, not a simple EA. 📌 Core Features: Smart Money Management (risk-based lot calculation) Advanced Trading Toolbox (TradingView-style drawing tools) Central Master Dashboard (risk, filters, account control) Multi-account monitoring (MT4/MT5 synchronization) Real-time monitoring (spread, equity
Hi, I am looking for someone to create me a trading indicator that will scalp the market 30-90 pips successfully in high volumes, I would like to be able to bridge this to create a signal channel for my community so it would need to have buy and sell indication on the indicator we run quite small stop losses so execution of trades can’t go in to draw down much alternatively create me a MT5 EA bot that scalps the
Alert indicator 30+ USD
I want an alert indicator using moving average and another one is customized indicator, but i don't have it's source file. is it possible? if yes let me know we will discuss further
Hello, i would like to have a ninjatrader indicator. I wanna to have a footprint indicator with delta, imbalances and big trades identifiable. Also I wanna sell it on whop. And it should be fully customisable in NT8
I am looking for an experienced developer in MQL5 to build a fully AI and automated trading bot (Expert Advisor) for MetaTrader 5. The EA will trade XAUUSD only and will be based purely on price action and Smart Money Concepts (SMC), specifically focusing on liquidity sweeps, market structure shifts (MSS/CHoCH), and wick rejection entries at key points of interest (POIs). The system must follow a strict rule: no
I need a professional MT5 custom indicator that builds and displays a full Kagi chart , along with continuation-based alert signals . Part 1: Kagi Chart Construction The indicator must: Construct a proper Kagi chart structure Support: Reversal by fixed price Reversal by percentage Maintain correct: Yang (bullish thick line) Yin (bearish thin line) Shoulder (local high) Waist (local low) Draw: Yang lines (thick
Hi, I’m looking for an experienced developer to build an MT5 indicator based on the strategy outlined below. The indicator should: Identify and display entry points Plot TP1, TP2, TP3 , and Stop Loss (SL) using ATR-based calculations Run on my MT5 desktop platform Send real-time trade signals/alerts to my Telegram account If Telegram integration is not feasible, please suggest alternative methods (e.g. push
This robot is going to help me to assist my parents about their needs, it also going help me build a house and purchase my own car. Additionally, it is going to play an essential role upon my life as I will not struggle with the foods and transport for taking the trips

プロジェクト情報

予算
40 USD
締め切り
最高 3 日