Convert my trading strategy with custom indicators into an Expert Advisor

MQL5 Experts Convertir

Spécifications

I have a trading strategy using two custom indicators that I would like be converted into an EA.

There are technically two trading strategies that can be used or a combination of entry and exit conditions.

Each trading strategy has its own entry and exit conditions, and I would like the user to be able to select which entry and exit conditions they want to use (confluence open, confluence close, reversal open, reversal close)
______________________________________________________________________________________________________

Definitions:

Red bands on top are the 'Sell' "Reversal Zone", Green bands on bottom are the 'Buy' "Reversal Zone"
Reversal Zones are simply an ATR multiple of the middle TMA Band.
The 'Sell' "Reversal Zone" is between the 5x ATR multiple and the 2x ATR multiple of the TMA
The 'Buy' "Reversal Zone" is between the -5x ATR multiple and the -2x ATR multiple of the TMA
The Middle band is the TMA (Triangular Moving Average)

______________________________________________________________________________________________________

Trading Strategies:


First Trading Strategy with visual representation of confluence open and close.

Strategy Notes: The confluence strategy is best for swing trading on larger timeframes like H1 - D1 but can be used on timeframes down to M15




Confluence Long Entry Conditions:
1. Price enters "Reversal Zone"
2. AND Price is below middle TMA line
3. AND middle TMA line is trending 'UP' (lime-green)
4. AND Smoothed ATR Trend Envelopes changes from 'down' to 'up'
5. If all conditions are true, enter a long position on the following candle open

Confluence Long Exit Conditions:
1. Price enters "Reversal Zone"
2. AND Price is above middle TMA line
3. AND middle TMA line is trending 'DOWN' (magenta)
4. AND Smoothed ATR Trend Envelopes changes from 'up' to 'down'
5. If all conditions are true, exit long position on following candle open

Taking short positions with the confluence strategy follows the same logic, just reversed.

Confluence Short Entry Conditions:
1. Price enters "Reversal Zone"
2. AND Price is above middle TMA line
3. AND middle TMA line is trending 'DOWN' (magenta)
4. AND Smoothed ATR Trend Envelopes changes from 'up' to 'down'
5. If all conditions are true, enter a short position on the following candle open

Confluence Short Exit Conditions:
1. Price enters "Reversal Zone"
2. AND Price is below middle TMA line
3. AND middle TMA line is trending 'up' (lime-green)
4. AND Smoothed ATR Trend Envelopes changes from 'down' to 'up'
5. If all conditions are true, exit short position on following candle open



Second Trading Strategy with visual representation of reversal open and close:

Strategy Notes: With this particular strategy, every candle that closes inside the "Reversal Zone" is a buy or sell opportunity. I would like to have a "Maximum Orders Limit" input for the user to choose how many orders the EA can enter based on the entry conditions. Default will be 5.
Smoothed ATR Trend Envelopes are not used as part of this strategy.

Note: MACD can be used for reversal confirmation but is optional to the strategy and is usually lagging the reversal trade.



Reversal Short Entry Conditions:
1. If there are no open short positions
2. AND price closes in 'Sell' "Reversal Zone"
3. AND TMA is 'DOWN'
4. Enter a short position on the open of the next candle.

Reversal Short Exit Conditions:
1. When price closes in 'Buy' "Reversal Zone", close all open short positions on the open of the next candle.

Reversal Long Entry Conditions:
1. If there are no open long positions
2. AND price closes in 'Buy' "Reversal Zone"
3. AND TMA is 'UP'
4. Enter a long position on the open of the next candle.

Reversal Long Exit Conditions:
1. When price closes in 'Sell' "Reversal Zone", close all open long positions on the open of the next candle.
_______________________________________________________________________________________________

Additional Requirements:


I would like an information panel to be visible to the user similar to this one:

I would like these particular properties listed:

EA state: (running/not running) is the EA active and running
Algo Trading: (true/false) is algo trading turned on
Magic ID: (integer)
TMA Trend Direction: (Up/Down) determined by the middle TMA trend direction
SATRTE Trend Direction: (Up/Down) determined by the Smoothed ATR Trend Envelopes of Averages trend direction
Price in Reversal Zone: (true/false) is the price in a reversal zone?
Reversal Zone: (Buy, Sell, None) which reversal zone is the price in
Reversal Zone Band: (2, -2, 2.6, -2.6, 3, -3, 3.4, -3.4, 3.8, -3.8, 4.2, -4.2, 4.6, -4.6, 5, -5) Reversal band last touched by price
Sentiment: (Buy, Sell) this depends on the entry condition selected by the user. See entry conditions.




Inputs:

I would like the user to have all the neccessary inputs to properly backtest the strategy.

Magic ID: (int)
TMA Period: (int)
ATR Period: (int)
ATR Multiplier: (double) the current "reversal zone" bands are statically calculated but i would like them to be calculated based off this multiplier so as this multiplier value changes, so do the multiples of the "reversal zone" bands. If you have questions regarding this, please ask.
Trend Threshold: (double) see indicator code for more context
Entry Condition: (string) enum: [indicator confluence, reversal zone]
Exit Condition: (string) enum: [indicator confluence, reversal zone]
Maximum Orders Limit: (int) default 5
Show Indicators: (boolean) plot indicators to chart
Use trading windows: (boolean)
Trading time start: (datetime)
Trading time end: (datetime)
Lot Calculation Method: (string) enum: [min lot size .01, custom lot size, percentage of balance]
Custom Lot Size: (double) only relevant if "custom lot size" is selected from above
Percentage of Balance per trade: (double) i.e. "1.00" = 1%,  only relevant if "percentage of balance" is selected from above
Maximum Drawdown (%): (double) i.e. "30.0" = 30%
Maximum Daily Drawdown (%): (double)

Colors: (only relevant if user selects true on "Show Indicators")
TMA: (3 colors - TMA Up, TMA Down, TMA Neutral)
Sell Reversal Zone: (3 colors - Upper Band, Lower Band, Middle Bands)
Buy Reversal Zone: (3 colors - Upper Band, Lower Band, Middle Bands)
SATR Trend Envelopes: (2 colors - SATRTE up, SATRTE down)
SATR Trend Envelopes Start: (2 colors - SATRTE up start, SATRTE down start)


Any other inputs that you think might be helpful to the user, please let me know
______________________________________________________________________________________________________

The custom TMA indicator I use is adapted from a few sources but you can reference  to get a good understanding of way the strategy works.




Répondu

1
Développeur 1
Évaluation
(56)
Projets
65
6%
Arbitrage
26
19% / 35%
En retard
4
6%
Chargé
2
Développeur 2
Évaluation
(17)
Projets
19
26%
Arbitrage
3
67% / 33%
En retard
2
11%
Travail
3
Développeur 3
Évaluation
(8)
Projets
11
36%
Arbitrage
4
25% / 25%
En retard
1
9%
Travail
4
Développeur 4
Évaluation
(3)
Projets
5
0%
Arbitrage
0
En retard
1
20%
Travail
5
Développeur 5
Évaluation
(34)
Projets
44
57%
Arbitrage
3
0% / 33%
En retard
2
5%
Travail
6
Développeur 6
Évaluation
(10)
Projets
25
28%
Arbitrage
2
0% / 0%
En retard
1
4%
Chargé
7
Développeur 7
Évaluation
(66)
Projets
71
63%
Arbitrage
4
75% / 0%
En retard
7
10%
Travail
8
Développeur 8
Évaluation
(42)
Projets
88
14%
Arbitrage
30
30% / 57%
En retard
36
41%
Travail
9
Développeur 9
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
10
Développeur 10
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Travail
11
Développeur 11
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Travail
12
Développeur 12
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
13
Développeur 13
Évaluation
Projets
1
0%
Arbitrage
1
100% / 0%
En retard
0
Gratuit
14
Développeur 14
Évaluation
(378)
Projets
401
31%
Arbitrage
62
19% / 69%
En retard
51
13%
Travail
15
Développeur 15
Évaluation
(19)
Projets
22
27%
Arbitrage
0
En retard
2
9%
Travail
16
Développeur 16
Évaluation
(563)
Projets
932
47%
Arbitrage
302
59% / 25%
En retard
124
13%
Occupé
17
Développeur 17
Évaluation
(298)
Projets
444
64%
Arbitrage
5
40% / 0%
En retard
4
1%
Gratuit
Commandes similaires
i need ea for my rule based very simple rule start buy and sell open order maintain stoploss in % for ex 10 opposite trade open at reversal price in % for ex 10 and maintane 10% stoploss very simple concept input needed example stoploss maintain in %> 0.01 lot size > 0.01 reversal in % > 10
I need someone who can copy trade from one tradovate account to another one A very bold expert that can render this service with a fast time frame, be plain and direct with your response and also let me know if you'll need anything from my end aside I pay
Hello! I want to create a trading robot fox xauusd; mql5; based on the 30m timeframe. For a BUY position I want: the "3" candle to be bullish; "2" candle to be bearish; "1" candle to be bullish with the close above the open of "2" candle. Candle "1" needs to have a top wick bigger than 3 pips (30 points). When this happens open a BUY position at the open of the next candle (candle "0" as i show in the image) with the
Time Range Breakout 50 - 200 USD
I want a breakout Expert developed, where I can set the Range start time and range end time. At the end of the range the expert places a Buy Stop at the High and a Sell Stop at the Low. The Take profit and stop loss are set in the inputs. The most important aspect is the way it keeps replacing stop orders. So for example if I have the Max Daily Orders set to 3, the expert will keep replacing the buy stop and sell
Life Creator 40 - 1000 USD
the topic of this robot is ,,life creator'' becouse when you have no idea what to do, this robot can help you and teach you how you can do it. The robot gonna creat you your own tactics which can help you in future. When you gonna see that it's really work you start to be happy and you gonna want to have more of this
I need assistance with configuring an MT4 setup so that every alert generated by an indicator is sent to a Discord channel. Requirements: Discord Webhook Integration: Implement functionality to send messages to a specified Discord channel using a Webhook URL. Capture Alerts from Indicator: Ensure that every alert triggered by a specific indicator (or multiple indicators) in MT4 is forwarded to the Discord channel
I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) designed to help me pass the FundedNext Challenge and be suitable for long-term real trading. The EA must meet the following requirements: Requirements: Challenge Passing Capability : The EA must be specifically optimized and tested to pass the FundedNext Challenge. It should adhere to the risk management and trading rules of the
AllForexEA 30+ USD
Algorithm - from which order the drawdown reduction algorithm is activated. - Percent profit for DD Reduction Algoritm - percentage of profit when closing orders in the drawdown reduction mode. - Magic - is a special number that the EA assigns to its orders. - Fix distance - fixed distance between orders (default 250 - in points) - Order dinamic distance - from which order will the
I am seeking help with data mining SPX on Thinkorswim and Thinkorswim's OnDemand. In spreadsheet format (preferably Google Sheets), I need someone to provide: -Every Tuesday's Close Price since the beginning of 2003. -The corresponding "ImpVolatility" reading for every Tuesday since the beginning of 2003. -The least and greatest value/price for the Expected Move of the SPX based on readings taken every two hours from
Function (A) simple to do___________________________________________________ //+------------------------------------------------------------------+ //| Expert Tick Function | //+------------------------------------------------------------------+ void OnTick() { F1(); F2(); F3(); } //+------------------------------------------------------------------+ bool F1(){ extern bool F1(); Set to external (false) or (true)

Informations sur le projet

Budget
30 - 200 USD
Délais
de 1 à 10 jour(s)

Client

Commandes passées2
Nombre d'arbitrages0