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

MQL5 Indicators Experts

Job finished

Execution time 3 days
Feedback from employee
Great customer !
Feedback from customer
Very supportive and patient developer!

Specification

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

 


Files:

PNG
sys_re1.png
32.6 Kb

Responded

1
Developer 1
Rating
(84)
Projects
149
31%
Arbitration
32
34% / 41%
Overdue
43
29%
Free
Similar orders
I want to find a Developer to perform this work and settle payments in this Application. I undertake not to communicate with Applicants anywhere else except this Application, including third-party messengers, personal correspondence or emails. I understand that violators will be banned from publishing Orders in the Freelance service. I have read the Rules of using the Freelance service and accept them. I agree with
I'm looking for develop a predictive program that trades in forex currencies .The program will identify patterns and triggers and use this data to make high probability trades. If you're a professional developer that's capable to take on this project. Kindly send me a message and let's discuss further
Overview: I would like to create a robot in MT5 (what I use) that when the price or candle touches a moving average it auto- matically gets me into a trade. Details or features I need: 1 a way to tell it how much to trade 0.10 or ten cents per pip or more or do I set this in MT5? 2 a way to limit the number of trades per candle or set it to two or three trades (if the price crosses over the moving average ten times I
Would it be possible to get a custom offer for my footprint chart? The chart is already ready-made I just need some adjustments to the columns. I want to modify the volume and delta values, and also add percentage delta. Can you help with that
Candle bot 30+ USD
A dual-direction breakout stacking EA using previous candle highs/lows as triggers with rolling pending orders and fixed micro take profits. It is suitable for: automation EA development trend capture with repeated entries recovery-style trade management
Szukam doświadczonego programisty do stworzenia dedykowanego doradcy eksperckiego (EA) do tradingu. Programista powinien posiadać solidną wiedzę z zakresu MT5, logiki strategii, wskaźników, zarządzania ryzykiem i backtestingu. Doświadczenie w tworzeniu niezawodnych i profesjonalnych robotów handlowych będzie dodatkowym atutem. Proszę o kontakt, jeśli zrealizowałeś już podobne projekty. wszystkie szczeguły podam w
I am looking to buy a ready-made automated trading robot / EA that works on the Tradovate platform and is proven to pass prop firm challenges for Apex Trader Funding, Tradeify, and Lucid Trading.Key Requirements (must be ready-made or very close to plug-and-play):Fully functional on Tradovate (native or via stable bridge/copier/webhook/API integration – MT5 EA + Tradovate bridge is acceptable if it works reliably)
Alex 1000+ USD
Нужен бот для скальпинга именно на Python. Работа напрямую через API биржи (без привязки к TradingView и MetaTrader). Бот будет запускаться локально на ноутбуке / VPS. Критически важна скорость (использование асинхронности, WebSockets
Looking for an experienced programmer to create a fully automated trading system. The EA must be able to detect SPECIFIC H&Shoulder patterns, identify entry point and open a position. Parameters: Candle Count : EX: 50 - meaning the max amount of candle history to look for a pattern. (user adjustable) RISK: EG "2" Meaning the position that must be opened must be 2% of the Balance of the account (user adjustable). The
I’m looking for an experienced MetaTrader 4 (MT4) developer to analyze, repair, and live-test an existing .EX4 Expert Advisor. Project Details Existing file: GannMadeEasy_pro.ex4 Platform: MetaTrader 4 Issue: EA is not loading properly on charts in newer MT4 builds Goal: Make the EA fully functional and compatible with current MT4 versions Requirements The developer must: Analyze the existing EX4 file Identify

Project information

Budget
40 USD
Deadline
to 3 day(s)