MQL5 EA creation based on Price Channel (Donchian Channel)

仕事が完了した

実行時間42 日
開発者からのフィードバック
Highly professional

指定

The rights and ownership of MQL5 EA and it's source code will belong 100% will belong to me. I will need the source code and when compiled, the EA must return no error. 


Requirements:

The EA must use and trigger sound alerts and trades on the break outs of the price channel (Donchian channel) as described below. 

The EA must use the ATR (Average True Range), 10 Price Channel (Upper and Lower channel only) and 20 price channel (Upper and Lower channel only) to make it’s calculations as described below.

Note: Price Channel is the same as the Donchian channel.

The EA must have the ability to alert 

EA must work on a 8 hours chart 

EA must leave detailed information in the journal and entry/exit on the chart

If there are any errors, it must print a message describing the error in the journal.

Trading behavior - First in first out (FIFO) must apply to each trade. 

Entry is calculated from <Entry_target> +/- of 20 price channel (based on the last candle closed). 

+ for buying into the market

- for selling into the market

Take profit

Take profit is calculated by 2 x ATR - <ATR_Factor>.

ATR_Factor is a numeric variable described in the input section. 

Stop loss (A)

All Price Channel measurements are taken from the last candle closed (aka the candle BEFORE the entry).

If the 10 Price Channel measure less than 200 pips (from Upper channel to Lower channel), the Initial Stop Loss is 80 pips away from the entry price. Verify that you are not within 30 pips of a local candle support/resistance, if so move the ISL 5-15 pips further away from the support/resistance. ***If local resistance/support is more 130 pips away then ISL is 100 pips. Local/support is determine by last 3 to 8 pips. ***

If the 10 Price Channel measure more than 200 pips (from Upper channel to Lower channel), the ISL is 175 pips away from the entry price.  Verify that you are not within 50 pips of a local  candle support/resistance, if so move the ISL 10-25 pips further away from the support/resistance. ***If local resistance/support is more 250 pips away then ISL is 200 pips. Local/support is determine by last 3 to 8 pips. ***

If the 10 day Price Channel measure more than 400 pips (from Upper channel to Lower channel), you can use one of 3 ISLs:

(A) 175 pips

(B) The chart's support/resistance; or 

(C) 2/3rds of the PC measurement.  

If the Initial Stop Loss is more than 225 pips away from price, use 1/2 of your normal lot size for the entry. 

If the Initial Stop Loss is more than 300 pips away from price, use 1/4 lot size.

Stop loss (B)

Stop loss is Y pips beneath the 10 price channel (Y is configurable).

Trailing Stop Loss (A)

The Initial Stop Loss doesn't become the Trailing Stop Loss until the 10 Price Channel has moved more than 30 pips away from the Initial Stop Loss, in the direction of the trade.

If, in between any two candles, the 10 Price Channel moves between 30 and 60 pips, then move the Trailing Stop Loss to the 10 Price Channel (+/-) 1/2 of the pip move.  The Trailing Stop Loss should be farther away from price than the 10 Price Channel.

If the 10 Price Channel plateaus for 6 candles, then move the Trailing Stop Loss to the 10 Price Channel (+/-) 5 pips.  

Trailing Stop Loss (B)

Trailing Stop Loss <TSL_value> pip below the 10 Price Channel

Inputs Variables: [Name and description]  

Entry target = The number of pips above or below the 20 price channel.  If the Entry value was set to 20. Entry would be  20 pips above the 20 price channel for buy orders and 20 pips below for sell orders.


Entry percentage (On/Off) = When selected, entry target value is the percentage multiplied by the distance from current 20 price upper channel (20UPC) - 20 price lower channel (20LPC) add to the 20 price channel (20PC) is the entry.  Formula: (20UPC-2LPC)x<Entry target>+/-(20PC)=Entry.


Lot_size_percentage = Percent based on the available funds in the account. Example: 10 would mean 10% of available funds for that trade. 


ATR_Factor =  Take profit is determined by the formula 2 x ATR - ATR_Factor.  ATR_Factor is number of pips subtracted from this formula. 


Stop Loss Rules A (On/Off) = When selected, Stop Loss is determine by rules in Stop Loss A. 


Stop Loss Rules B (On/Off) = When selected, Stop Loss is determine by rules in Stop Loss B. 


Trailing Stop Loss A (On/Off) = When selected, Trailing  Stop Loss is determine by rules in Trailing Stop Loss (A) Rules. 


Trailing Stop Loss B (On/Off) = When selected, Trailing  Stop Loss is determine by rules in Trailing Stop Loss (B) Rules. 


Debug_mode (On/Off) = Pauses trading and alerts me so that I can evaluate traded before it is executed. This should bring up a dialog to “Execute Trade or Continue Monitoring”



応答済み

1
開発者 1
評価
(361)
プロジェクト
643
26%
仲裁
92
72% / 14%
期限切れ
12
2%
仕事中
パブリッシュした人: 1 code
2
開発者 2
評価
(219)
プロジェクト
370
42%
仲裁
145
17% / 41%
期限切れ
124
34%
パブリッシュした人: 38 codes
3
開発者 3
評価
(195)
プロジェクト
395
28%
仲裁
155
20% / 52%
期限切れ
112
28%
4
開発者 4
評価
(4)
プロジェクト
9
67%
仲裁
1
0% / 0%
期限切れ
9
100%
パブリッシュした人: 3 codes
類似した注文
Combine the two indicators into one indicator. I want it to have both Dark and Light mode depending on MT5 theme. I want to be able to configure colours of each Lines and rectangles plotted. I will provide the codes for both separate indicators
Hi, are you able to create a script/indicator on tradingview that displays a chart screener and it allows me to input multiple tickers on the rows. then the colums with be like "premarket high, premarket low, previous day high, previous day low" . When each or both of the levels break, there will pop up a circle on the chart screener, signaling to me what names are above both PM high and previous day high or maybe
1. Idea systemu handlowego jest następująca : wejścia na rynek odbywają się, gdy główna linia MACD i linia sygnałowa przecinają się zgodnie z aktualnym kierunkiem trendu . 2. Trend jest określany na podstawie wykładniczej średniej kroczącej z określonym okresem (InpMATrendPeriod). Jeśli bieżąca wartość EMA jest większa od poprzedniej, trend uznaje się za rosnący (ema_current > ema_previous). Alternatywnie, jeśli
Hi I have a simple task (hopefully) I have a custom strategy that I built with the help of Claude Anthropic - everything is finished and I zipped it with power shell but when importing it NT8 gives me the error message that the file was made from an older, incompatible version or not a NinjaScript. My folder structure is correct as far I can see so I don't know what the issues is and it's costing me too much to go
Looking for an experienced MQL5 developer to design and develop a custom Expert Advisor (EA) for MetaTrader 5. The purpose of this EA is not just automated trading, but also to help me better structure, test, and refine my personal trading strategy
Freeallfree 400 - 800 USD
Professional MT5 EA – XAUUSD I need a professional Expert Advisor for MT5 (MQL5) to trade XAUUSD only. This is not a random scalping bot. The EA must trade only high-probability liquidity breakouts during active sessions and avoid ranging or low-volatility markets. Symbol: XAUUSD Timeframe: M15 (optional H1 confirmation) Session filter (Dubai GMT+4): Trade only London and New York sessions Adjustable session times No
Modification of EA and Addition of New Trade Logic and Features Currently, the EA is opening trades correctly but in addition, there are times when it is opening the trades wrongly. The EA is based on an indicator (only the .ex5 file is available). A new trigger logic also needs to be added, along with new closing conditions. This project must NOT use any DLL and must be submitted in 1 day (max 2 days) The EA will be
Refine signal trigger execution . Optimize live chart performance . Ensure stable and clean code structure : Stable and clean code is important . Otherwise its a mess . Apply with as much accurate structure you foresee
This post is subject to developers response . Edit the post as you like . May be with me you can make a come back . So , , , Shift calculations . More to the calculation then you can comprehend is known . What else comes to your mind
All other Necessary filters already coded , Mostly it is referring to another expert copy pasting . Live Chart Optimization . Optimization from Signal Trigger Point . Apply to stay ahead . While applying please explain the correct trailing stop loss for value gap entries

プロジェクト情報

予算
30 - 100 USD
締め切り
最低 0 最高 10 日