I need a Closing Script

MQL4 脚本 统计和数学

工作已完成

执行时间4 天
客户反馈
Very good programmer, fast and reliable.
员工反馈
Thank you for your trust and interesting work.

指定

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.


附加的文件:

JPG
Capture.JPG
111.6 Kb

反馈

1
开发者 1
等级
(13)
项目
20
15%
仲裁
2
50% / 50%
逾期
0
空闲
2
开发者 2
等级
(14)
项目
21
24%
仲裁
9
33% / 44%
逾期
8
38%
空闲
3
开发者 3
等级
(586)
项目
1048
49%
仲裁
39
28% / 41%
逾期
49
5%
工作中
4
开发者 4
等级
(28)
项目
30
37%
仲裁
0
逾期
0
空闲
5
开发者 5
等级
项目
0
0%
仲裁
0
逾期
0
空闲
6
开发者 6
等级
(142)
项目
280
42%
仲裁
18
61% / 6%
逾期
29
10%
空闲
7
开发者 7
等级
(137)
项目
167
35%
仲裁
11
91% / 0%
逾期
0
空闲
相似订单
Here's the bot's trading strategy in a nutshell>>> I would like to make a simple scalping MT5 EA trading bot for the synthetic indices, specifically for the Boom 1000 Index. This MT5 EA trading bot will be based off of the 10 period moving average that follows specific rules for entry. The parameters of the moving average are as follows: Period:10 Shift:1 Method:Linear Weight Apply to:Close The bot will only initiate
I require an MT4 Expert Advisor (EA) that automatically places hedge orders when a buy or sell order is placed by me or another EA. The hedge orders will consist of a stop order (either Buy Stop or Sell Stop), with the same lot size as the original order, deployed at a predefined price distance. The EA must ensure that only one hedge order is placed for each trade. The system should monitor trades based on specific
For Chart Panel : Needs a Black Back ground at present its transparent . ✔️ Trading Panel (To be reset weekly = 1-6) 1. EA Status : (on/off) 2. Total Trades Taken : 3. Number of Profitable Trades Today : 4. Number of Loosing Trades Today : 5. Number of Profitable Trades This Week : 6. Number of Loosing Trades This Week : (To be Reset every Month = 7-9) 7. Number of Profitable Trades This Month : 8. Number of Loosing
Hello there, am in need of an expert pinescript programmer who can work on an existing code to add some indicators and features. Please bid if you understand pinescript well and can work on existing code
T here is one simple robot with an open code, it can be modified - news filter, etc. I will attach the source code and the Image of the filter i want to add to the ea If you can do it, Kindly reach out to me so we can discuss about and also here is my tg handle TG: Ibiscotrader
We are seeking an experienced MQL4 developer to create a forecasting indicator with a prediction accuracy above 80%. The indicator must be capable of learning from historical market data starting from the year 2000 to the present. Additionally, it should offer an option to analyze and learn from all available candlesticks on the current timeframe, allowing it to adapt to real-time market conditions. Key Requirements
Required to develop expert advisory which will work on any pair including crypto , forex, gold, silver, oil, simple stragy which will work on RSI,GRID, take profit, grid distance, start and stop button, only buy and only sell, filter for time frame Like 5m to 4 hr. stop loss and take profit .Detail will be shared once you except order
dreams good and have a great Cash out from your smart phone , tuyoywuiy glamorous flood see full idk idk slow so dolls stupid sis workouts who's spark koalas oral waits also doggo idk
NRTR - indicator for MetaTrader 5 NRTR (Nick Rypock Trailing Reverse) - indicator for MetaTrader 4 NRTR WATR - indicator for MetaTrader 4 NRTR GATOR - indicator for MetaTrader 5 X2MA NRTR - indicator for MetaTrader 5 NRTR - indicator for MetaTrader 5 NRTR GATOR - indicator for MetaTrader 4 NRTR - indicator for MetaTrader 4 Stalin_NRTR - indicator for MetaTrader 5 NRTR Color Line - indicator for MetaTrader 5 NRTR Rosh
I need an EA edited to make TWO main changes to conditions for how it enters trades. The EA code is written with clean code and is well commented. Will provide more info on changes in a doc in the chat

项目信息

预算
50+ USD
开发人员
45 USD
截止日期
 5 天