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
등급
(1847)
프로젝트
3447
88%
중재
73
40% / 15%
기한 초과
264
8%
작업중
2
개발자 2
등급
(1)
프로젝트
1
0%
중재
1
0% / 100%
기한 초과
0
무료
3
개발자 3
등급
(130)
프로젝트
210
40%
중재
90
20% / 43%
기한 초과
85
40%
무료
4
개발자 4
등급
(260)
프로젝트
534
50%
중재
54
41% / 37%
기한 초과
224
42%
작업중
5
개발자 5
등급
(91)
프로젝트
144
38%
중재
67
15% / 48%
기한 초과
55
38%
무료
비슷한 주문
How can I backtest the news with calendar. I want to know how to backtest the news using an e.a. how can I get this done... Do you have a news trade that can do this... If so please reach out to me... What do I need to do to have the history of news information be drawn to the chart to be tradable in backtest scenarios
custom job to convert my expert to mq5, work will be done remotely more details in private to carry out the task correctly help for converting expert remotely All details will be sent privately
Hello, can you help me convert MT4 EA source code to MT5? I have two versions of an EA for MT4 that I have been using for quite a while and I want to move over to MT5. There are no additional indicators. Everything is inside the EA mq4. Also, could you provide a strategy guide in PDF format for me of both strategies, apply if you are professional enough in the field
I need someone with skills who will help me create expert advisor based on swing trading. I need the EA to have the ability to determine pivot points. And it should open buy or sell based on this criteria. I also want it to have the following: 1. Risk management 2. Take profit/Stop Loss 3. Trailing Stop/Step/Start 4. Dashboard for input parameters ( I need to be able to modify parameters via user interface)
Developer !! i need an robot that is going to analyze the market\pair chart before opening trades ,example if the robot is place on the chart of GBPUSD on H1 time frame the robot should analyze the direction of a market ,then open after knowing the direction,if the can possible make it analyze even on lower time then that would be fantastic. remember the is going to open on its own the trades, thank you NB;i don't
Respected Madam I need an EA in Mql5 which can Buy at certain Increment of points like 100 then 50 then 50 then 25 then 25 then 25 then 25. Possibility of Grid increase. Buys at certain fixed level if the the Price drops like 100 points down then again 100 points down then again 100 points down like this in a grid system, Grid size I will declare. Grid order systems with stop loss and Multiple Reorders if the Stop
Hi, I need an simple MT5 EA which trades based on full body candles at specific trading time. Start Hour Start Minute End Hour End Minute Min full candle body size in points % real body of candle size to count the candle as full body candle Enter buy on bearish full body candle Enter sell on bullish full body candle Enter on same candle if the real body size has reached x points and the % of real body to candle
本人现有一个网格EA,内有马丁加仓平仓,需要升级,加入对冲功能和其他功能.(其他细节后谈) 1 . 網格繫統:可選:YES/NO. 如果:YES,設置:網格間隔,網格層數, 2 . 開倉:條件開倉,可選:YES/NO.(目前默認爲NO) 分爲市價開倉/STOP ORDER/ LIMIT ORDER, 3 . 加倉:分爲:固定手數,如:0 . 03,或末單累加:0 . 01,或:末單倍數如:1 . 5倍.多單和空單的加倉方法可以不同設置. 4 . 移動止盈.(單獨移動,多/空方整體點數移動/或金額移動) 5 . 平倉包括: A.多方/空方止盈線,和多方/空方止損線(可以設置三條價格:每條選擇:平倉 1/3,1/2,或全部) B.單獨止盈/止損 (多方和空方可以設置不同的,)盈利點數或金額 整體止盈/止損.(多方和空方可以設置不同的,)
HFT needed 100+ USD
Need hft ea which working properly as well as demo accounts and live accounts with good daily returns as well as monthly returns need experinced programers to show thier most profible ea programers with more than 100 projects done will be shortlisted . And developer should provide its demo version for test before going to further steps
Hey, I trust my messages finds you well, I am in need of an expert seasoned forex trader that also skilled in programming MT4 EA, please read below I have some trading ideas in mind, this is why I mentioned that I need a forex trader who can help me have an expert look to those ideas I will be sharing in comment section then advised on the needed suitable ideas in addition to what I have alreadly have,I mean I need

프로젝트 정보

예산
30 - 150 USD
개발자에게
27 - 135 USD