Advanced Engulfing EA based on RSI

MQL5 EA Forex Panels and dialog boxes

작업 종료됨

실행 시간 6 일

명시

Welcome dear fellow Traders/Developers,

I am asking for an experienced person, who may help me. I would like to create an Engulfing EA, that work together with an RSI indicator.


Task:

The Engulfing  EA opens and manages positions with two different types of openings based on the candlesticks. There may be one or more open positions at a time, but only in the same direction. An added indicator is also needed for the expert (RSI). I would like it, if the EA could be used on any timeframe.

Opening (Important)

The expert works with two types of openings, but for both, it looks for Engulfing candles on the chart. An opening can occur once or multiple times per candle. The ''normal'' opening is at the opening of the new candle after the Engulfing candle, that has been carefully filtered by the EA. The ''advanced'' opening is a bit more difficult: Some Engulfing bars are being retested on different levels, this is why the EA divides the body of the Engulfing candle into multiple parts and on each part it places a pending order with the same direction as the Engulfing candle.

Example: There's a bullish Engulfing candle with the bodysize of 100 points, the EA opened a normal trade after the Engulfing candle closed and divides it into 1/2, so at the half of the body (at 50 points) the EA also places a BuyLimit order. If it's 1/3, then the EA places two pending orders at both third of the candle. With this we're minimalzing the SL distance and maximalizing the profit. The SL and RiskPercent are also based on the inputs. (I'm also happy to recive any advices or recommendations for this part)


Closing

The priority of the closing process is based on an RSI value. As soon as the value of the RSI reaches a certain amount, the EA closes the trade. Or you can select a specific RR ratio for the trades.


Input parameters:

  • MagicNumber (integer, default: 12345): The Magic value of open positions for later identification.
  • OpenType: (normal/advanced): Choosing wheter you're using a normal type of opening or advanced.
  • AdvancedType: (selectable, 1/2, 1/3, 1/4): Choosing the preffered advanced opening type.
  • UseTP : Close with a TP after each opening signal, not on an RSI value. I'm thinking about RR ratios, like 1:1, 1:2, 1:3 and so on, based on what you choose.
  • MinCandleSize (decimal, in point): The minimum candlestick size on which the EA opens a trade.
  • MaxCandleSize (decimal, in point): The maximum candle size on which the EA opens a trade.
  • BodySizeMultiplier (decimal): The Engulfing candle must be at least this many times the size of the previous candle. Example: If the parameter value is 1.5, the Engulfing candle must be at least one and a half times larger than the previous candle.
  • TailToBodySizeMultiplier (decimal): The minimum body-to-wick ratio of the Engulfing candle. Example: At 1, the body of the candle must be at least as large as the wick. At 5, the body of the candle should be at least 5 times larger than the candle wick. 
  • Lookback (integer, number of candles):  It determines how many candles need to be examined backwards to establish whether there is a local minimum or maximum. We use this value for the placement of the SL.
  • RSI Period (integer, default: 8): The parameter of the RSI period used.
  • MaxRSI Filter (decimal): Maximum RSI value where a Long position can still be opened.
  • MinRSI Filter (decimal): Minimum RSI value where a Short position can still be opened.
  • RSIexit Long (decimal): The RSI value at which the EA closes a Long trade.
  • RSIexit Short (decimal): The RSI value at which the EA closes a Short trade.
  • RSI Direction Exit (true/false): Whether the RSI-based trailing stop should be on or off.
  • RSI Direction Start Long (decimal): The RSI-based trailing stop starts at this point for Buy.
  • RSI Direction Start Short (decimal): The RSI-based trailing stop starts at this point for a Sell.
  • RSI Direction Distance (decimal, default 3): An RSI-based trailing stop follows the RSI value at this distance.
  • MaxSpread (integer, in point, default: 50): The maximum spread value for openings.
  • RiskPercent (decimal, percentage, default: 1): Risking this percentage of the capital to open a trade.
  • FixedLotSize (true/false, default: false): Opening a trade with a fixed lot size, instead of the percent of the capital.
  • UserLotSize (decimal, lot, default: 1): The default trade size with which you open a trade.
  • MoveSLtoBE (true/false, default: true): When reaching RR 1:0.5 or 1:1 the SL is being dragged to BE. (Advice and help is needed here.)
  • UseTrailingStop (true/false): Activating the trailing stop or not.
As for the display/screen, A button that you can press to turn the EA on and off would be preferable. (Trading is ON/ Trading is OFF)
  • Button X (integer, pixels): The horizontal position of the switch button. 
  • Button Y (integer, pixel): The vertical position of the switch button.

Some more info:

  • The candle body is greater than or equal to MinCandleSize.
  • The candle body is less than or equal to MaxCandleSize.
  • The candle body covers the body of the previous candle (the top is greater than or equal and the bottom is less than or equal to the body), and is in the opposite direction (neither can be zero).
  • For a Buy opening, the candle must be bullish, for a Sell opening, the candle must be bearish.
  • The candle body is greater than or equal to the BodySizeMultiplicator times the body of the previous candle.
  • For a Buy opening, at the upper wick of the candle and for a Sell opening, at the lower wick, the body should be at least a TailToBodySizeMultiplicator times.
  • It also checks the current RSI value, according to the rule above, so in the case of Buy, the RSI value is lower or equal to MaxRSIFilter, for Sell, the value of the RSI is greater than or equal to MinRSIFilter.
  • The current spread is less than or equal to the MaxSpread
  • The expert has no open position, or at most it is only in the direction in which we would like to open now. 
  • With the button on the chart, opening is enabled
  • If the value of FixedLotsize is true, then the opening of a trade size corresponding to the UserLotSize parameter. If false, the expert determines the trade size by risking the RiskPercent percentage of the current capital, rounded down.
  • The stop management is the same for the two types of openings. At the start, the Buy stop is placed at the lowest point of the  Lookback signalled candle and the Sell stop is placed above the highest point of the signalled candle with the spread at the opening.

RSI based Trailing Stop:

For the opening, an RSI-based trailing stop also works, if the RSI Direction Exit is on true. This always works with the current RSI value. For Buy, it will turn on if the RSI value is greater than or equal to RSI Direction Start Long, and for Sell, if it is less than or equal to RSI Direction Start Short. Once engaged, it follows the RSI value with an RSI Direction Distance (moving only upwards for Buy, only downwards for Sell) to determine a closing RSI value. From this point on, if the RSI value is less than or equal to the value of the RSI in the case of a buy, and if it is greater than or equal to the  RSI value in the case of a sell, it closes the position.


Display

On the chart, it displays the same information interface as the expert, and it also displays a button that allows and prohibits opening. It marks the corresponding Engulfing candles with an arrow, for Buy it it shows an upward one below the low value of the candle, for Sell it shows a downward one above the high value.


Thank you for your time!












응답함

1
개발자 1
등급
(39)
프로젝트
59
20%
중재
6
33% / 17%
기한 초과
1
2%
작업중
게재됨: 2 코드
2
개발자 2
등급
(258)
프로젝트
269
29%
중재
2
50% / 0%
기한 초과
3
1%
작업중
게재됨: 2 코드
3
개발자 3
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
4
개발자 4
등급
(2676)
프로젝트
3414
68%
중재
77
48% / 14%
기한 초과
342
10%
무료
게재됨: 1 코드
5
개발자 5
등급
(274)
프로젝트
403
28%
중재
40
40% / 50%
기한 초과
1
0%
무료
6
개발자 6
등급
(47)
프로젝트
67
37%
중재
5
40% / 40%
기한 초과
1
1%
무료
7
개발자 7
등급
(329)
프로젝트
515
19%
중재
35
46% / 31%
기한 초과
34
7%
작업중
8
개발자 8
등급
(25)
프로젝트
33
18%
중재
6
50% / 33%
기한 초과
4
12%
무료
9
개발자 9
등급
(435)
프로젝트
642
53%
중재
35
63% / 20%
기한 초과
6
1%
작업중
10
개발자 10
등급
(323)
프로젝트
328
71%
중재
2
100% / 0%
기한 초과
0
무료
게재됨: 1 코드
11
개발자 11
등급
(9)
프로젝트
11
18%
중재
4
0% / 100%
기한 초과
4
36%
무료
12
개발자 12
등급
(2346)
프로젝트
2952
63%
중재
125
44% / 26%
기한 초과
429
15%
무료
13
개발자 13
등급
(62)
프로젝트
90
29%
중재
24
13% / 58%
기한 초과
7
8%
작업중
14
개발자 14
등급
(87)
프로젝트
121
68%
중재
5
80% / 0%
기한 초과
12
10%
작업중
15
개발자 15
등급
(33)
프로젝트
35
20%
중재
5
40% / 40%
기한 초과
0
무료
게재됨: 1 코드
16
개발자 16
등급
(102)
프로젝트
105
60%
중재
0
기한 초과
0
무료
17
개발자 17
등급
(619)
프로젝트
722
33%
중재
46
48% / 41%
기한 초과
14
2%
로드됨
18
개발자 18
등급
(13)
프로젝트
20
40%
중재
3
0% / 67%
기한 초과
3
15%
무료
19
개발자 19
등급
(21)
프로젝트
28
36%
중재
7
14% / 71%
기한 초과
2
7%
무료
20
개발자 20
등급
(19)
프로젝트
31
32%
중재
8
50% / 25%
기한 초과
3
10%
작업중
비슷한 주문
Most of the expert is already coded . Create a panel to show the Ratio for the Range . Trigger is based on ratio . Show Distribution / project starts after we clear Distribution
I am looking for an experienced MQL5 developer who can BOTH research trading strategies and develop a commercial-quality MetaTrader 5 Expert Advisor. This is NOT simply a coding job. The developer is free to choose the trading logic, indicators, entry method, exit method, timeframe architecture and strategy type. I do not require the EA to copy or resemble any existing commercial EA. My priority is: ROBUST LONG-TERM
Project Description I am looking for an experienced MQL5/MT5 Expert Advisor developer to develop an automated trading EA for XAUUSD on the M3 timeframe , running on an Exness account . The EA will automate a manual strategy based on SNR/GAP zones , using two setup types: Price Rejection Price Correction The EA should identify valid BUY/SELL setups around predefined SNR/GAP areas, apply configurable RSI, SMA, EMA and
I need an MT5 Expert Advisor for XAUUSD (Gold) running on an Exness account. STRATEGY LOGIC The exact entry and exit rules will be provided in writing before development starts. Please quote for a single rule-based strategy with clearly separated logic, so the rules can be adjusted later without rewriting the whole EA. RISK MANAGEMENT (this is the priority of the project) - Risk per trade as a percentage of account
Hello Traders, Have a trading strategy or idea you want to automate? I specialize exclusively in MQL5 development, helping traders turn their concepts into professional trading solutions. Custom Expert Advisors — automate your strategy and reduce manual execution Custom Indicators — transform your market ideas into powerful trading tools Fix & Debug — identify errors and get your existing code working properly
I am looking for a Senior MQL5 Developer to create a new MetaTrader 5 Expert Advisor from scratch. I will provide a complete Requirements Specification containing objective entry, exit and risk-management rules. This is not a request to copy or decompile an existing product. Project requirements: Clean and modular MQL5 source code. Exact implementation of the supplied strategy. One signal evaluation per configured
Hi i need help to connect my chat gtp with ninja trader I have all tools. Just need supervision and seeking a professional who can do that for me. This the bridge extension https://crosstrade.io/blog/chatgpt-to-ninjatrader-mcp-walkthrough
MT4/MT5 HFT EA us30 30 - 3000 USD
Hello everybody, I'm looking for an experienced MQL4/MQL5 developer to optimize a High-Frequency Trading (HFT) Expert Advisor for both MT4 and MT5. The EA performs consistently and profitably on demo accounts, but when it is run on Raw and Standard live accounts under what appear to be the same trading conditions, it begins generating losses. I do not have the original source code (.mq4/.mq5); I only have the

프로젝트 정보

예산
300 - 400 USD