This EA is a typical Martingale Hedging

MQL4 专家

指定

1

JOB DESCRIPTION  (The final job is the delivery of the source code)

 

 

This EA is a typical Martingale Hedging EA.

It opens an order (for example: buy, 0.1 lot) and at the same time places a pending order in the opposite direction with a bigger lot size (for example: sell, 0.2 lot) at a certain distance (for example: 300 pips).

If the price descends 300 pips this second order will be activated. If the price keeps going down, at one point the first order (buy) will hit SL and the second order (sell) TP. As the second order has a larger lot size than the first order, the total outcome will be profit (or break even).

If the price does not hit TP and SL, and goes up again, then a new pending buy order will be activated at an even bigger lot size (0.3 lot). This process will go on until TP is hit and the hedge trading sequence closes.

- A new pending order will only be placed as soon as the last pending order is activated.

- A hedge trade sequence should ALWAYS be closed by TP and NEVER only by SL.

- All the existing trades in a hedge trade sequence will match their TP and SL values accroding to the latest activated trade (this is important in case the distance between the trade changes - "DistanceTrade"

- Where this EA differs a bit from a standard Hedging EA one is that it has relatively little automatisation and a lot of manual input fields.

- The EA works independent from the time frame it operates in.

- The EA should work with 5 digit as well as 4 digit brokers.

 

 

******************************************

 

 

INPUT FIELDS:

 

PauseAfterTP = true/false

        - It pauses (soft stop) the EA after TP is obtained and a Hedge trading sequence is closed - if "PauseAfterTP=true". The EA stops trading for an INDEFINITE amount of time. It will start trading again as soon as the Trader puts back "PauseAfterTP=false"

 

 

MaxSlippage = …..

        - the max slippage allowed for entering a trade

 

MaxTrades = …..

        - the max. number of trades in a hedging trade sequence

 

Magic Number = …..

 

MinEquityLevel = false/true

MinEquityLevel = …..

        - below this level the EA will not open new trade sequences (although it will allow already existing hedging trade sequences to continue and make new trades until they close with TP/SL)

        - the value introduced is the % of the total account balance.

 

UseEquityStop = false/true

TotalEquityRisk = …..

        - If the total Equity drops below this point the EA closes all the trades.

        - the value introduced is the % of the total account balance.

 

 

DeleteAll_TP_SL_LastTrade = false/true

    - When the last pending stop in a Hedge Trade Sequence is ACTIVATED we have the option that all the TP, SL and Trailing stops can be deleted. (DeleteAll_TP_SL_LastTrade = true)

    - The max. number of trades in a hedge trading sequence is set by the "MaxTrades" parameter.

 

       

AutoLot = true/false

- IF “AutoLot = false”, THEN the size of the initial trading lot is equal to “StartLot”

- IF “AutoLot = true”, THEN the size of the initial trading lot is equal to: StartLot x RiskPercent x (Account Balance / 10.000)

 

RiskPercent = …..

 

StartLot = …..

 

 

InitialTrade = buy/sell

        is related to:

        - the first trade after starting up the EA.

        - the first trade after the EA was paused by the “PauseAfterTP” setting.

 

InitialTrade_PendingOrderPips = …….

        - the exact value in pips of the initial pending order.

        - if “InitialTrade_PendingOrderPips” = 0 than no pending order will be used and the EA will open a new initial trade as soon as the EA starts up

        - this value resets itself to 0 as soon as this pending order is activated

 

TralingStopStep = …..

        - trailing stop step distance in pips

 

------------------------------------------

 

TP1 = …..

        - the distance of the TP of the initial trade in pips (the lot size of this trade is calculated earlier in “StartLot”)

 

TrailingStop1 = …...

        - trailing stop trailing distance.

        - the Trailing stop is activated when the prices reaches TP1 value. If that happens TP1 is cancelled.

 

SL1 = …..

        - the distance of the SL of the initial Trade in pips

 

------------------------------------------

 

DistanceTrade1-2 = …..

        - the distance between the initial trade and the second (pending) order

Lotsize2 = …..

        - the lot size for pending order 2 (the size is also calculated according to the “AutoLot” and “RiskPercent” settings)

TP2 = …..

        - the TP distance for trade 2 in pips

TrailingStop2 = …...

        - trailing stop trailing distance (for TP2)

SL2 = …..

        - the SL distance for trade 2

 

-------------------------------------------

 

DistanceTrade2-3 = …..

        - the distance between order 2 and 3

Lotsize3 = …..

        - the lot size for pending order 3

TP3 = …..

        - the TP distance for trade 3

TrailingStop3 = …...

SL3 = …..

        - the SL distance for trade 3

 

-------------------------------------------

 

DistanceTrade3-4 = …..

        - the distance between order 3 and 4

 

…….. etc

…….. etc

…….. until trade 12

 

 

 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

 

 


附加的文件:

PNG
hedging2.png
148.1 Kb
PNG
hedging3.png
136.7 Kb
PNG
hedging4.png
104.7 Kb

反馈

1
开发者 1
等级
(48)
项目
80
28%
仲裁
8
75% / 13%
逾期
41
51%
空闲
2
开发者 2
等级
(17)
项目
24
33%
仲裁
5
20% / 40%
逾期
8
33%
空闲
3
开发者 3
等级
(204)
项目
209
28%
仲裁
0
逾期
3
1%
空闲
5
开发者 5
等级
(43)
项目
72
49%
仲裁
4
0% / 50%
逾期
19
26%
空闲
6
开发者 6
等级
(599)
项目
932
46%
仲裁
31
39% / 29%
逾期
93
10%
空闲
7
开发者 7
等级
(4)
项目
6
0%
仲裁
2
0% / 50%
逾期
4
67%
空闲
8
开发者 8
等级
(90)
项目
118
17%
仲裁
44
23% / 39%
逾期
20
17%
空闲
9
开发者 9
等级
(258)
项目
395
28%
仲裁
69
19% / 49%
逾期
120
30%
空闲
10
开发者 10
等级
(356)
项目
632
26%
仲裁
89
73% / 13%
逾期
12
2%
空闲
11
开发者 11
等级
(58)
项目
77
44%
仲裁
12
8% / 50%
逾期
12
16%
空闲
13
开发者 13
等级
(221)
项目
369
66%
仲裁
10
50% / 0%
逾期
46
12%
空闲
14
开发者 14
等级
(13)
项目
34
76%
仲裁
1
100% / 0%
逾期
6
18%
空闲
15
开发者 15
等级
(66)
项目
143
34%
仲裁
10
10% / 60%
逾期
26
18%
空闲
相似订单
Dr Pattern 30+ USD
good day i need the service of the seaso coder to help me fix my ea The Job required 1 knowledge of Mt4 and Mt5 indicator coding 2. Telegram code 3. ability to code indicator to work on multiple Time frame combine to trade 4 Ability to Join two or three indicator on same ir different time frame if you have these skill please let chart i will discuss the details of the Job inside to you The required day including
Good day, I want someone to help me create a universal news filter with on/off switch, with start and end settings, and drawdown control with magic number of EAs, etc. Thanks
Hello, I am looking for a professional programmer to optimize my existing EA integrating it with ChatGPT to analyze currencies using various methods to make the right trading decisions. i want it to be an EA that can be trusted to carry trade with the help of chat gpt and also have a very low drawdown
Hello, I am looking for a professional programmer to create a trading expert on the MT4 platform, integrating it with ChatGPT to analyze currencies using various methods to make the right trading decisions. Further details will be provided to the applicants later
I have developed a very strong TradingView strategy in Pine Script but unfortunately, a third-party connector is requiired and in my opinion, I want a more direct connection. I am not brilliant at coding, but I have coded the majority of the MT5 code and I would like you to make sure that the MT5 code matches my TradingView script and executes the same way as the TradingView script that I will provide if you are
EA based on RSI and MA 100 - 400 USD
Program is based on RSI and MA indicators dynamic as triggers, for Open/Close criteria. Runs automatically but inputs can be updated manually. It uses a GUI to manage it. Multi TF analysis. Log register of every operation for analysis (db) Open Source deliver. Kindly apply IF you have previous experience with trading and mql/python/c bot/algo developing. And if you have a good track record . ps: Better if you have a
This is and EPA (Entry Point Analyzer). Automatically analyzes the algorithm for XAU/USD and places a safe entry point mark for your trade. This has been tested and gives out 90% success rates
I am looking for an experienced MQL5 developer to help me finalize and optimize an Expert Advisor (EA) for the FTMO challenge. I have already built a significant portion of the code, but it requires further refinement and optimization to ensure it functions according to the trading strategy I intend to use. I am happy to share all the resources, including the current code, reference materials, and detailed
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
I need a modification on my existing Ea if you can Can fixed risk management to lot size instead of percentage. don’t want strategic risk management input to be based on percentage Instead lot size. The strategic risk management function I need turned from percentage to lot based And I need sells and buys to have separate tps and sl options Budget:$100 Day: 1 day

项目信息

预算
30+ USD
开发人员
27 USD