I need a Closing Script

Job finished

Execution time 4 days
Feedback from employee
Thank you for your trust and interesting work.
Feedback from customer
Very good programmer, fast and reliable.

Specification

Hi Coders,

 

-I need a closing script to manage my EA open positions.

-The EA is Hedging with Martingale functions(Fibonacci sequence in ZigZag order).

-What i want from the Script, is to help me to AVOID to have too many big positions open, and i want to close them separetly-accordingly.

 

EXAMPLE:(look the attached picture)

 

"FIXED" POSITIONS CLOSE:

-Need to calculate the net position and when reach the TP, then close ALL position in the sequence.

           (The TP need to measured from the weighted average of the bigger positions side) 

 

"PARTIAL" POSITIONS CLOSE:

-If the "Partial" positions it is also opened, need to calculate AFTER the first 2 positions, the net position to reach BREAKEVEN.

                                                    (could be more positions, but need to be minimum two)

 The script also need to check what was the LAST opened position in "FIXED" positions sequence.

(IF  it was BUY, and the "partial" close is happend with Sell Side(The Bigger Side), then close also THIS LAST BUY from the "Fixed SEQUENCE")

(IF it was SELL, and the "partial" close is happend with the BUY SIDE(The Bigger Side),then close also THIS LAST SELL  from the "FIXED SEQUENCE)

 The reason for that, I WANT TO STAY IN THE TREND DIRECTION, AFTER THE "PARTIAL" POSITIONS  ARE CLOSED 

 

 

The Script need to monitor:

-Magic number to collect the positions in the same "basket"

-The Weighted Average of the Buy positions 

-The Weighted Average of the Sell positions 

-How many Buy and Sell is open in the sequence at the moment.

-How many of them "FIXED", and there is any "Partial Position"?

-If Yes, then calculate Separate Weighted Average for the "partial" positions (buy & sell)  (for the breakeven)

-What was the last position opened in the "FIXED SEQUENCE"?Buy or Sell?(Yellow arrow on the picture)

 

I Need Option for:

-Adjustable Magic number to  manage  the specific  EA positions

-How many positions will be in the "Fixed" Positions sequence

-TP option for the "FIXED" positions to close in pips

-The Net position SIZE, TYPE & net PIPS printed on the chart in one line, like this>>> 

(BUY > 0.34 > + - 23 Pips)

(adjustable color, font, wich window, & what position x, y value)

-Horizontal lines for >>Weighted Buy Average & the Weighted Sell AVERAGE (color & thickness adjustable)


See the attached picture.


Files:

JPG
Capture.JPG
111.6 Kb

Responded

1
Developer 1
Rating
(13)
Projects
20
15%
Arbitration
2
50% / 50%
Overdue
0
Free
Published: 1 code
2
Developer 2
Rating
(14)
Projects
21
24%
Arbitration
9
33% / 44%
Overdue
8
38%
Free
3
Developer 3
Rating
(589)
Projects
1072
50%
Arbitration
39
28% / 41%
Overdue
49
5%
Free
Published: 1 article, 8 codes
4
Developer 4
Rating
(28)
Projects
30
37%
Arbitration
0
Overdue
0
Free
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(144)
Projects
285
42%
Arbitration
19
63% / 5%
Overdue
29
10%
Free
Published: 2 codes
7
Developer 7
Rating
(137)
Projects
167
35%
Arbitration
11
91% / 0%
Overdue
0
Free
Similar orders
un écosystème logiciel asynchrone multi-comptes dopé par un module de supervision par Intelligence Artificielle (Guardian AI). La solution assure le pilotage automatisé, le filtrage de marché en temps réel et le contrôle des risques pour 20+ comptes MetaTrader 4/5 (via MetaApi) et Deriv sur VPS Equinix NY4. vous aurez plus de detail dans les échanges
We’re building our team for an upcoming crypto project and are looking for skilled professionals to help us move development forward. We’re especially interested in developers experienced with React.js and Node.js, with Web3 knowledge being a strong advantage. We plan to launch the MVP by the mid of Dec and complete the project by Christmas. Our budget is $20–$30 per hour, depending on experience and skill level
Metafix 50 - 200 USD
Here is a professional specification you can send directly to your developer. # Project Requirements Specification: MetaTrader 5 Trading Robot Development ### 1. Project Overview I want to develop an automated Forex trading robot (Expert Advisor) for MetaTrader 5 (MT5). The robot should analyse the financial markets, identify trading opportunities, and execute trades automatically based on predefined strategies. ###
Objective: I am looking for an experienced MQL5 quantitative developer to code an Expert Advisor (EA) from scratch based on a fully defined, rule-based strategy, and then rigorously validate, optimize, and stress-test it before I deploy it on a live VPS environment. Note: The exact mathematical rules, indicator names, and chart screenshots will be shared privately with shortlisted candidates. Strategy Overview
I am looking for an experienced MQL5 developer to recreate my existing MT5 Expert Advisor (DSTR Novaa). I have the original compiled EX5 file, Vantage MT5 live trading history and original Strategy Tester report. Required Trading Logic: EMA Period: 3. BUY when price crosses below EMA 3. SELL when price crosses above EMA 3. Starting Lot: 0.01 (configurable). Martingale Multiplier: 2.0. Maximum Martingale Cycle: 9
I'm looking for a developer to build a simple cloud-based monitoring and alert system for a trading account whose performance statistics are displayed on a third-party website. The system should: 1. Monitor the account's balance, equity and open positions. 2. Calculate the current floating drawdown as a percentage of account balance. 3. Send a single alert, preferably via WhatsApp or alternatively email, when
CyberShadow AI 30 - 300 USD
I want a bot that’s trades using smc strategy having stop loss and take profit.I want it to be able to trade with small account I want a disciplined robot but a strong one to I also what it to trade using trend line and locate point of interest
PROJECT: EXISTING MT5 EA MODIFICATION – XAUUSD SLIPPAGE REDUCTION 1. Project Objective I already have a fully developed MT5 Expert Advisor (.mq5 source code). I am looking for an experienced MQL5 developer who can optimize my existing EA to achieve the lowest possible execution slippage on a REAL LIVE trading account. My primary and only objective is to zero slippage. I am not looking for a new trading strategy or
1. Project Overview I am seeking an experienced MQL4 programmer to develop a fully automated, adaptive, and profitable Expert Advisor (EA) specifically designed for trading Gold (XAUUSD) on the MetaTrader 4 (MT4) trading platform. The objective is to develop a high-frequency scalping EA capable of identifying and executing high-probability trading opportunities across changing market conditions, including trending
SMC Bot Creation 350 - 550 USD
Hello, I am interested in developing a professional MT5 Expert Advisor similar in functionality and technical sophistication to your reference product, Institutional SMC Robot: https://www.mql5.com/en/market/product/187011 I want to develop my own independent EA based on advanced Smart Money Concepts (SMC), with a strong focus on institutional price action, liquidity and market structure. The key functionalities I

Project information

Budget
50+ USD
Deadline
to 5 day(s)