Develop MT5 EA - entry based on previous bar and use Martingale (Source Code in MT5 must be provided as part of acceptance)

MQL5 エキスパート

仕事が完了した

実行時間14 日

指定

Develop MT5 EA - entry based on previous bar and when direction is wrong, place Martingale Trades. (Source Code in MT5 must be provided as part of acceptance)

 

I have a trading strategy that I would like to be coded into a MT5 EA.  The worker will take the requirements and translate them into the language of the MT5 and test it.

 

Extensive Experience with coding for MT5 EA (involving Martingale, Trailing stop loss, Checking Free Margin and Margin Used etc) is required. Please post previous experience with mql5.

=============================

Set File Paramters List

1.      EA_ShortName  (alphanumeric 7 characters) – Default “WFCZ”

2.      MagicNo  (Numeric 6 digits) – default “3467”

3.      MaxSpread in points (2 digits) – default 20

4.      MaxSlippage in points (2 digits) – default 5

5.      StopNewInitialTrade = Yes/No (Boolean) – default NO

6.      BarWait = 0, 1, 2, … (integer – 1 digit) – Default 3

7.      PriceNotToLong  / PriceNotToShort   (numeric – 999999.99999)

8.      AsianSessionTP / LondonSessionTP / USSessionTP  in points (4 digits - 9999)

a.      ATR(UserATRPeriod integer 2 digits) x ATRFactor (99.9999)

9.      InitTradeTrailingStopMode – (Boolean) Can be On or Off to decide whether to use Trailing Stop for initial trade

10.  InitTradeTrailingDistancePnts; InitTradeTrailingStepPnts  (5 digits – 99999 (i.e. up to thousand pips))

11.  MartgTradeTrailingStopMode - Can be On or Off to decide whether to use Trailing Stop for Martingale trade

12.  MartgTrailingDistancePnts; MartgTrailingStepPnts (5 digits – 99999  (i.e. up to thousand pips))

13.  MartgLotSize1 (99.99 lots) , PipsFromPrevTrade1 (5 digits 99999), MartgTP1 (4 digits - 9999), 

14.  MartgLotSize2, PipsFromPrevTrade2, MartgTP2

15.  …,  MartgLotSize10, PipsFromPrevTrade10, MartgTP10

16.  MartgMaxLevel (integer – 1 digit) = 0 (disable Martingale), 1, 2, 3, …  10

17.  MinFreeMargin / MaxMarginUsed – (8 digits - 999,999.99)

 


Initialization / Start:

1.      Check the previous trades / recognize where EA left off (What Martingale level next) because the system could be stopped by user,  scheduled maintenance, or system crashed etc. – store the NxtMartgLvl in variables and to check/compare against these just before placing new orders later

2.      Check all of EA’s own trades have TP properly set (i.e. sometimes server is busy or disconnected before TP is modified or user/trader changed set file TP) – if TP is different from set file – modify the tp depending on whether it’s initial trade or martingale trade

3.      Check all of EA’s own trades have TrailingStop properly set

4.      Calculate MarginLoadOfSymbol (see money management)

 

Requirements

1.      Control by  MagicNo + Symbol()  (i.e. diff. chart symbols can have same magic number)

a.      but diff timeframe of same chart symbol must use/set diff. magic number) because EA doesn’t store/check timeframe

2.      MaxSpread & MaxSlippage

a.      MaxSpread can be a fixed points or as percentage of quote

b.     MaxSlippage - not to trade only if adverse slippage, continue to trade if favorable slippage

3.      After trade, get the actual price executed from broker server to calculate TP (because executed price may be different for the ordersend price due to slippage, etc.)

4.      After modifying TP, read from server and compare to make sure the TP is modified (sometimes server is busy / disconnected and loss the TP)

5.      After trade, populate Comment field:  EA_ShortName+”/”+MagicNo+”/”+YMDD+”/”+HHMMSS + InitTrade (0 is initial trade) or Martingale Level (1, 2, 3, etc.)

a.      Y is last digit of year (e.g. “8” for 2018)

b.     M is 1-9, A (Oct), B (Nov), C (Dec)

6.      InitTradeTrailingStopMode – Can be On or Off to decide whether to use Trailing Stop for initial trade

7.      MartgTradeTrailingStopMode – Can be on or off to decide whether to use Trailing Stop for Martingale Trades

 

Entry of Initial Trade (i.e. NOT martingale trade) –

1.      If NOT StopNewInitialTrade then execute the below code

2.      Check if within EA Operating hours – 2 time bands (see below)

3.      BarWait – number of bars to wait before initial trade entry (0 bar and up; 0 means don’t wait) – barwait is only for initial trade and is not applicable to martingale trades

a.      After exit, wait for barwait no. of bars and if immediate bar is positive/bullish then initialtrade is buy; if immediate bar is negative/bearish then initial trade is sell

4.      Place Long Order (OrderSend) only if Current Price is < PriceNotToLong  and  Place short order only if  Current Price is > PriceNotToShort

5.      Check if satisfies Max Spread & Max Slippage

6.      If TrailingStopInitTradeMode is Off then use TP as follows

7.      AsianSessionTP ; LondonSessionTP; USSessionTP each can be set as fixed points for TP or as percent of ATR(UserATRPeriod) x ATRFactor

8.      If InitTradeTrailingStopMode is on – InitTradeTrailingDistancePnts; InitTradeTrailingStepPnts

9.      Trailing Stop for Initial Trade Only takes effect after the moving above entry price (i.e. trailingstop will only kick in to take profit when price retrace); for loss below entry price, using martingale

 

Martingale trades

1.      Martingale – For each Martingale levels user can define/input MartgLotSize, PipsFromPrevTrade, MartgTP

2.      If MartgMaxLevel > 0 and Current Martg Count <10 and Abs (Current Price – Last Order Executed) > PipsFromPrevTrade then place new martg order

3.      MartgTrailingStopMode – Can be On or Off to decide whether to use Trailing Stop for Martingale trade

4.      Trailing Stop – MartgTrailingDistancePnts; MartgTrailingStepPnts

 

EA Operating Hours (Op. Hr. Start / End for Monday to Friday; 2 sections per day; format of 00:00 to 24:00)

1.      Start Hours and Ending Hours (for Monday to Friday) – no trade if not within trading hours (00:00 to 24:00)

1.      MonOpHrStart1 ; MonOpHrEnd1 ; MonOpHrStart2 ; MonOpHrEnd2

2.      TueOpHrStart1 ; TueOpHrEnd1 ; TueOpHrStart2 ; TueOpHrEnd2

3.      WedOpHrStart1 ; WedOpHrEnd1 ; WedOpHrStart2 ; WedOpHrEnd2

4.      ThuOpHrStart1 …

5.      FriOpHrStart1 …

6.      Only trade if CurrentTime is within EA Operating hours– that is:

a.      If DayOfWeek is Monday and CurrentTime Is within (MonOpHrStart1 and MonOpHrEnd1) or (MonOpHrStart1 and MonOpHrEnd2) then execute trade

b.      If DayOfWeek is Tuesday and CurrentTime is within (TueOpStart1 …

 

Money Management

1.      Before placing the order (OrderSend) check what would be the Free Margin had the trade taken place, if it’s less than the user parameter (MinFreeMargin) then don’t place order

2.      Before placing the order, check what would be the “margin used” had the trade taken place, if margin used is more than user parameter (MaxMarginUsed) then don’t pace order

a.      Because MaxMarginUsed is a proxy of positions open and level of risk in the event of highly volatile market

3.     MaxMarginUsed is affected by MarginLoadOfSymbol – MarginLoadOfSymbol is calculated by EA – to calculate, simply adding initial trade Lot, plus M1 Lot, M2 Lot, M3 Lot  (from set file) upto MaxLevel – this calculation is done at EA Initialization/start Stage


応答済み

1
開発者 1
評価
(414)
プロジェクト
670
33%
仲裁
60
17% / 32%
期限切れ
113
17%
仕事中
2
開発者 2
評価
(71)
プロジェクト
254
53%
仲裁
16
50% / 38%
期限切れ
83
33%
3
開発者 3
評価
(94)
プロジェクト
148
59%
仲裁
16
38% / 13%
期限切れ
25
17%
4
開発者 4
評価
(49)
プロジェクト
134
27%
仲裁
62
13% / 53%
期限切れ
58
43%
5
開発者 5
評価
(1)
プロジェクト
1
0%
仲裁
1
0% / 100%
期限切れ
0
類似した注文
Experienced developer to create an EA using multiple common indicators. Indicators are disclosed in the Requirements Specification in clear formal trading rules. Sharp focus on the placement of Stop Loss and Trailing Stops in a must capability. 4X platform is MT4
Dear All, I need an RISK to REWARD Ratio expert advisor for top to bottom, support and resistance and order block strategy. If the developer has any good risk to reward strategy, I will apprecaite. Kindly provide me the EA, I will test it on my demo account from Monday till friday - And the payment gets released on Friday upon the results The EA should also be able to give TRUE and honest back test results. The ea
I am looking for a skilled and experienced programmer proficient in MQL4 to help me transform my trading strategy into a fully automated trading bot for the MetaTrader 4 platform. The ideal candidate will have a strong understanding of algorithmic trading, risk management, and the nuances of trading across different timeframes. **Project Details:** - **Strategy Explanation**: I will provide a detailed explanation of
Hello, I am looking for a programmer who can develop or already has an EA in their portfolio that works with the Breakout technique. It must have the ability to select the candles on which to calculate the highs and minis, it must give the ability to set the time of day in which to enter pendindig orders and if present also a chart panel seems welcome. It must be performant and already with SET file ready
The EA should have the input of the indicator for i will be putting my own settings Buy/sell order conditions to be met before an order is executed 1. BUY ORDERS; a weak/strong low signal appears and must be touching/sitting on a previous buy order block while discount lower band block is also touching the previous buy OB 2. Trade per OB: in the EA input it should have an option of trade per OB and the no.of trades
Please kindly assist me to modify my EA for free. The EA is working already working on candlestick patterns and staking position. So modify it if the reversal candlestick closed, open a pending limit positions on the OB/FVG on any time frame of my choice on the input parameters H1 , H4 or D1 , before it starts staking positions on M5,M15 TF
I have created a Timeframe Panel indicator in mql5. The indicator scans for all open charts on the platform and it creates a panel that contains all the open symbols and next to it it contains all the timeframes for each symbol. When i attach the indicator to 4-5 charts then it makes many times the chart to freeze and the price feed of the chart stops. I want an experienced mql5 to make the indicator not to freeze
Hi, I will use: 5 indicators to find main trend , 5indicators to find current trend, find pivot point, support/resistance, reversel candle then entry.......indicators are available on mt5. *Dashboard chart will show on the chart as all indicators result,,,,as MA,MACD, bullish or bearish ,,,,add all others features days of trading,,,,hrs,,,etc
Ea already has it way of placing order by putting pending orders when candle open in the direction of the previous candle .All function of the ea should be maintained nothing should change. I want ea should have a compounding order function,which allow ea place multiple pending order in the form of grid with a compounding pips interval function(the distance between two pending orders) in accordance to original ea
I want Ea tht will work on boom and crash only. The ea must work in m1 / m5 and it must scalp . I want the ea grow small account like 10 usd to 100/50 usd daily.. boom and crash no loss . The developer must came with the strategy... this ea is for small account

プロジェクト情報

予算
50 - 120 USD
開発者用
45 - 108 USD
締め切り
最低 5 最高 10 日