I need a Closing Script

İş tamamlandı

Tamamlanma süresi: 4 gün
Müşteri tarafından geri bildirim
Very good programmer, fast and reliable.
Geliştirici tarafından geri bildirim
Thank you for your trust and interesting work.

Şartname

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.


Dosyalar:

JPG
Capture.JPG
111.6 Kb

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(13)
Projeler
20
15%
Arabuluculuk
2
50% / 50%
Süresi dolmuş
0
Serbest
Yayınlandı: 1 kod
2
Geliştirici 2
Derecelendirme
(14)
Projeler
21
24%
Arabuluculuk
9
33% / 44%
Süresi dolmuş
8
38%
Serbest
3
Geliştirici 3
Derecelendirme
(589)
Projeler
1069
50%
Arabuluculuk
39
28% / 41%
Süresi dolmuş
49
5%
Çalışıyor
Yayınlandı: 1 makale, 8 kod
4
Geliştirici 4
Derecelendirme
(28)
Projeler
30
37%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
5
Geliştirici 5
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
6
Geliştirici 6
Derecelendirme
(144)
Projeler
285
42%
Arabuluculuk
19
63% / 5%
Süresi dolmuş
29
10%
Serbest
Yayınlandı: 2 kod
7
Geliştirici 7
Derecelendirme
(137)
Projeler
167
35%
Arabuluculuk
11
91% / 0%
Süresi dolmuş
0
Serbest
Benzer siparişler
automatic robo sell at bollinger band upwards breach and rsi should above 80 and buy when bollinger breach downwards and rsi is below 30, rsi shoould works only on Gold trade and none ofhe trades
Hello, I need a custom Expert Advisor for MetaTrader 5. I am trading from mobile only. **Account & Style:** - Capital: $5,000 - $10,000 - Risk: Moderate/Balanced - Trading Style: Scalping **Pairs & Timeframe:** - Symbols: EURUSD and XAUUSD - Timeframe: M5 **Strategy:** - BUY: RSI(14) < 30 AND Price > 20 EMA - SELL: RSI(14) > 70 AND Price < 20 EMA - Only 1 trade per symbol at a time - No Martingale / No Grid **Risk
Mac200 50+ USD
I need a Trend following Bot. Here we took entries by looking at two indicator which are 200 period ema and 12 26 9 MacD. Rules for entry exit are: Buy trade: When market is above 200 ema and MacD Line cross over the signal line and this cross over happened below the zero line of MacD indicator. We simply put Buy trade. Sell trade: When market is below 200 ema and MacD line crosses below the signal line and this
1. The general process is: Automated online forex marketing to find potential clients -> Answering potential clients' questions -> Converting them into actual clients -> Opening accounts, depositing funds, and copying trades. 2. Developers could implement an AI Digital Twin/Shadow Agent to answer customer questions, eliminating the need for me to answer customer inquiries. 3. I have a CTA website and I'm manually
Iconic Boy 300 - 400 USD
Am looking for a bot to trade .so that I can be able to trade and become very successful and make some profit so that I cannot sleep on a empty stomach
Привіт. Шукаю когось, хто б застосував мій код як бота . Я торгую індексом Aus_200 SFE (не XJO). Бот базується на MACD входу/виходу, RSI, стохастиці та vwap. Як тільки роботу приймуть, мені потрібно внести кілька коректив; однак, нічого суттєвого. Дякую
Custom MT5 EA for buy stop and sell stop breakout strategy.’ ‘Requirements, develop a custom Expert Advisor for MetaTrader 5 that places buy-stop and sell-stop pending orders based on defined breakout rules.’ ‘All important values adjustable via inputs.’ ‘Includes stop loss, take profit, trailing stop, and configurable risk management.’ ‘One trade at a time, works on demo before live.’ Provide source code and
A good trend predicting indicator is the one which can identify the trend change as soon as it happens on the chart. when a new candle is formed it should tell whether its going to go up or down. I have already seen a lot of repainting trend predictors so if your indicator is repainting then please don't bother contacting. I would like to see the demo version and then if satisfied , I would want the source code too
Platform MetaTrader 5 (MT5) MQL5 Source Code Required Compatible with Exness MT5 both standard and cent accounts/ICMarket accounts Works on EUR/USD only (initial version) ⸻ Objective Develop a fully automated AI Expert Advisor based on ICT Smart Money Concepts (SMC). The EA must only execute high-probability trades that satisfy all required conditions before opening a position. The EA must avoid overtrading and
Bonjour, je recherche un développeur MQL5 expérimenté pour créer un Expert Advisor pour MetaTrader 5 basé sur une stratégie de trading intégrant des principes de gestion des risques rigoureux et d'intelligence financière. Le robot doit être capable de gérer plusieurs paires de devises et d'optimiser automatiquement les entrées et sorties en fonction de conditions de marché prédéfinies."

Proje bilgisi

Bütçe
50+ USD
Son teslim tarihi
to 5 gün