This is an automatic partial hedging scalper to offset usually too many orders opened by another EA and market going opposite majority of open jobs.

MQL4 专家

工作已完成

执行时间8 天

指定

EA will be dropped/attached to a chart and then read all open orders for that chart's instrument. Then it will determine how many are buy orders and how many are sell orders and then calculate the difference. Next it will use ADX to determine volatility and currency pair direction and open 1 market order for hedge lot size indicated in EA extern input field by user (I will use default 50% in this example) in the direction of fewer orders to create a hedging effect. The target price will be close to current market price thus a scalping strategy with usual TP, Stop-Loss, and trailing stop (trailing stop default = 0).

When TP achieved then it will loop to for beginning and re-test. If stop-loss reached then it will also loop and re-test. EA will never trade in direction of greater number of open orders ... that would not be a hedge. Usually another EA (I will call ABC) is running in a separate chart window and creating buy or sell orders continuously with the logic programed into that EA. This EA (I will call XYZ) will monitor all open orders in separate 1 Min chart window and use ADX for volatility and direction. There should also be a switch input to continue EA or discontinue whether it is active. If the order reaches stop-loss that is an indication market is trading in direction of majority of open orders and so XYZ will wait and re-evaluate periodically (wait period can be input in milliseconds by user).

Again, Logic flow of steps

1. Calculate difference between buy and sell orders in chart (in this case EURUSD)

2. determine if prices are going up or going down (in this case they are going up and another EA ABC was selling so there are many sell orders)

3. determine if there is sufficient volatility to take risk of opening a trade against orders opened by ABC ... the trade will be half because user put 50 in input called PercentHedge

4. this EA determines there is sufficient volatility AND price action is against current open trades so it opens new buy order for (50% * [difference between open sell orders and open buy orders])

5. this is a partial hedging EA that uses scalping strategy so it will have small TP and small Stop ... it can use trailing Stop but default is 0

6. wait for orders that were opened by this EA to close by TP or Stop and then go to 1.

Inputs I foresee are:

EA Active (Boolean)

PercentHedge (if there are sell orders = .15 and buy orders = .10 and PercentHedge = default 50 then XYZ will create open order for ([.15 - .10] * 50% and round up ... in this case .05 * .50 =.025 so .03 will be calculation used for hedge

TP (target price in points [5 digit broker])

SL (stop-loss in points)

Trailing stop-loss distance activated from order price

Trailing stop-loss steps

Period of ADX indicator

Level of ADX indicator (volatility)

Slippage

Magic Number

Comment (for comment field in buy/sell order to differentiate it from other open orders or closed orders)


Further clarification (hopefully)

Imagine I have a terminal with another EA (ABC) in chart 1 and this EA (XYZ) will be in chart 2 and chart 2 is M1 ... when I attach XYZ to chart 2 it will open 1 order for  .23 ([1.90 - 1.44] * .50) lots if PercentHedge = 50.

Next chart show when XYZ will open trade

You can see 1) ADX is rising so volatility is good, 2) D+ is over D- so price is rising, 3) previous chart shows there is a difference between buys and sells so now all conditions to open a 1 order for .23.

If price goes up then small TP is reached and process repeats, if price goes down then small Stop-Loss is reached and XYZ will do nothing because it is only making buy orders because chart has more sell order than buy until other EA in chart 1 closes some orders with whatever logic it has.

... more inputs to test in Strategy Tester to demo EA but not required in real EA. Extra inputs are to simulate another EA in chart 1.

...

First chart is 30 minutes for chart 1 (ABC) ... second chart is 1 minute for XYZ for testing volatility and price direction at scalping level.

...

Again, XYZ will never trade in direction of greater total number of lots ... it will only trade in direction of fewer total number of lots ... it requires direction help of ADX to know when to open orders in same direction of fewer total number of lots

...

I would also like a button on the screen to activate / deactivate the EA and the button should clearly indicate whether the EA is Active or Not Active on a gray colored button (the EA will actually reset everything to before I attached the EA to the chart because later I might add an additional feature (I'm thinking about adding a line I can move that will also perform the function of the button but I have to think about it further in order to completely describe it with accuracy) Default location of the button should be lower left bottom of the screen but follow same distance from corner when I resize window for any reason with usual 1,2,3,4 user input to locate at top left, top right, bottom left, bottom right respectively.


...

This should be a good EA to help protect account when another EA opens too many orders. Once this EA is created and meets all requirements in this job order and tested I might need to create better version after actual use and after discovering any deficiencies in which case a new MQL5 job will be created.

Feel free to discuss anything regarding this job with me especially if any clarification is needed.

反馈

1
开发者 1
等级
(1931)
项目
3552
88%
仲裁
73
40% / 15%
逾期
268
8%
空闲
2
开发者 2
等级
(1)
项目
1
0%
仲裁
1
0% / 100%
逾期
0
空闲
3
开发者 3
等级
(130)
项目
210
40%
仲裁
90
20% / 43%
逾期
85
40%
空闲
4
开发者 4
等级
(271)
项目
553
50%
仲裁
57
40% / 37%
逾期
227
41%
工作中
5
开发者 5
等级
(91)
项目
144
38%
仲裁
67
15% / 48%
逾期
55
38%
空闲
相似订单
I’m looking to purchase an existing MT5 Gold / XAUUSD trading EA . I’m open to any trading strategy as long as the system is designed for higher returns. It can be scalping, grid, martingale, recovery, breakout, trend-following, hedging, or any other approach. I fully understand that high-risk, high-return strategies can experience very large drawdowns and may potentially blow the account . I’m aware of the risks
MT5 EA DEVELOPMENT SPECIFICATION CHANNEL + RSI REVERSAL STRATEGY I need a professional MetaTrader 5 Expert Advisor based on the following exact strategy. 1. Core Strategy The EA must automatically identify a valid price channel using confirmed swing highs and swing lows. The strategy trades reversals from the channel extremes: SELL: Upper channel + RSI above 70 + bearish rejection. BUY: Lower channel + RSI below 40 +
MetaTrader 5 (MT5) Price-Level Monitoring & Automated Phone Call Alert System Developer Needed Project Overview I am looking for an experienced developer to build a custom trading assistant for MetaTrader 5 (MT5) that monitors important price levels I manually mark on my charts and immediately calls my phone when the market reaches or interacts with those levels. This is Phase 1 of a larger trading assistant project
============================================================== MT5 XAUUSD GRID / AVERAGING EA FINAL DEVELOPMENT SPECIFICATION ============================================================== IMPORTANT: Please read the complete specification before development. The EA must follow the exact logic below. If any requirement is technically unclear or conflicts with another requirement, please clarify it BEFORE coding. Do
Create an MT5 Expert Advisor (EA) for trading Gold (XAUUSD). The EA should provide BUY and SELL signals based on trend direction, market momentum, and price action. It should automatically place trades only when the entry conditions are met. Risk management: Use a small adjustable lot size. Include Stop Loss (SL) and Take Profit (TP). Include a maximum daily loss limit. Include a maximum number of open trades. Do not
Looking for an MQL5 programmer to develop an Expert Advisor for MetaTrader 5 targeting Forex currency pairs. Core Logic: Multi-timeframe trend following using Heikin Ashi candles (4H trend filter + 1H execution trigger on new bars, strict anti-repainting logic). Risk & Trade Management: ATR-based initial stop loss with pip normalization, dynamic trailing stop, and partial close functionality. Protections: Includes
I want trading robot bults on top down analysi where the robot can analyse and trading only in the direction of the higher time frame chosen eg 1Month,1Daily,4Hr and 1hr. I want a situation when i plug the robot on the chat the bot must be plug and play where it analyse quickly and fast and with highest precision since its combined win an AI to obtain an acurate signals and quick it starts to open trades use top down
Senior MQL5 Developer Required — XAUUSD & BTCUSD Algorithmic EA I am looking for an experienced MQL5 developer to design and build a robust MT5 Expert Advisor for XAUUSD (Gold) and BTCUSD . This is not a request for a basic RSI/EMA EA, martingale, grid, or recovery system . I want a properly engineered algorithmic trading system with a demonstrable trading rationale, robust risk management, reliable execution and
العنوان: برمجة اكسبيرت MT4 (روبوت تداول) مخصص للذهب يعتمد على RSI والزيجزاج بدون مضاعفات الوصف: السلام عليكم ورحمة الله وبركاته، مطلوب مبرمج محترف بلغة MQL4 لتطوير اكسبيرت (روبوت تداول آلي) مخصص لمنصة ميتاتريدر 4 بناءً على الشروط والمواصفات الفنية الصارمة التالية، لتداول معدن الذهب (XAUUSD) على إطار الخمس دقائق (M5): 1. المتغيرات الخارجية (External Inputs - قابلة للتعديل يدوياً من الإعدادات): إدارة المخاطر (إدارة
Hello, I wish to add some new functions to this code and make working. So pls check and apply your coding skills to improve this code. It would be great thanks if you please help me to work this code. The test is showing profit but live trading will not working good

项目信息

预算
30 - 150 USD