Convert my trading strategy with custom indicators into an Expert Advisor

MQL5 Asesores Expertos Conversión

Tarea técnica

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.




Han respondido

1
Desarrollador 1
Evaluación
(56)
Proyectos
65
6%
Arbitraje
26
19% / 35%
Caducado
4
6%
Trabajando
2
Desarrollador 2
Evaluación
(17)
Proyectos
19
26%
Arbitraje
3
67% / 33%
Caducado
2
11%
Trabaja
3
Desarrollador 3
Evaluación
(8)
Proyectos
11
36%
Arbitraje
4
25% / 25%
Caducado
1
9%
Trabaja
4
Desarrollador 4
Evaluación
(3)
Proyectos
5
0%
Arbitraje
0
Caducado
1
20%
Trabaja
5
Desarrollador 5
Evaluación
(34)
Proyectos
44
57%
Arbitraje
3
0% / 33%
Caducado
2
5%
Trabaja
6
Desarrollador 6
Evaluación
(10)
Proyectos
25
28%
Arbitraje
2
0% / 0%
Caducado
1
4%
Trabajando
7
Desarrollador 7
Evaluación
(66)
Proyectos
71
63%
Arbitraje
4
75% / 0%
Caducado
7
10%
Trabaja
8
Desarrollador 8
Evaluación
(42)
Proyectos
88
14%
Arbitraje
30
30% / 57%
Caducado
36
41%
Trabaja
9
Desarrollador 9
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
10
Desarrollador 10
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Trabaja
11
Desarrollador 11
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Trabaja
12
Desarrollador 12
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
13
Desarrollador 13
Evaluación
Proyectos
1
0%
Arbitraje
1
100% / 0%
Caducado
0
Libre
14
Desarrollador 14
Evaluación
(378)
Proyectos
401
31%
Arbitraje
62
19% / 69%
Caducado
51
13%
Trabaja
15
Desarrollador 15
Evaluación
(19)
Proyectos
22
27%
Arbitraje
0
Caducado
2
9%
Trabaja
16
Desarrollador 16
Evaluación
(563)
Proyectos
932
47%
Arbitraje
302
59% / 25%
Caducado
124
13%
Ocupado
17
Desarrollador 17
Evaluación
(298)
Proyectos
444
64%
Arbitraje
5
40% / 0%
Caducado
4
1%
Libre
Solicitudes similares
Need to convert Thinkorswim strategies, indicators, or custom scripts to NinjaTrader. Offering seamless migration and functionality optimization to ensure your trading systems perform effectively on NinjaTrader. Fast delivery and reliable service
I'm looking for a quote from a developer who can compile this source code as DLL file so that it works on Forex Tester 5 They are all open source trading view indicators. Forextester 5 have advised that custom indicators in C++ or Delphi programme language are compatible with them
Hi I have the code in pinescript for an indicator that I need done in Ninja Trader, I wanted this indicator in NT bcs I chart in NT, and if the indicator could also have been an automated strategy even better. Please confirm that it will be an indicator and Automated Trading Strategy
I am writing to inquire about the possibility of porting a simple project from MQL5 to Quantower using C#. The project in question includes a panel with a button that draws a rectangle on the chart. This rectangle can be freely dragged around the chart area. Additionally, the panel contains two editable fields, X and Y, which display the position of the rectangle. As the rectangle is dragged across the chart, the X
I need a TradingView script (not mine) converted to an Mt5 EA. There is some specifications for the robots on when to be able to take a trade. Attached bellow is the file of the script I want translated and converted to MT5 then EA
hi. I hv a strategy on tradingview need to convert to mt4/mt5 expert advisor for algo trading. would like to add some tradingview strategy setting to the mt4/mt5 EA(not included in my tradingview source code): recalculate after order is filled, order size: xx% of equity
Hi There" I have a simply Tradingview strat in Pinescript, that I'd need you to convert into a mt5 ea. Below is the details of my Pine Script strategy It uses CCI with a length of 60, Bollinger Bands with a length of 60, the source is hlc3 and a macd indicator which gets its data from the 1m timeframe //@version=5 strategy("CCI, Bollinger Bands, MACD Trading Bot", overlay=true) length = input(60, title="Bollinger
Hi, I have a Compiled JForex strategy (.jfx file) I would like someone to convert it in to readable source code. Please let me know if you can do this task. Thank you
I need smart, professional, and fast programmer for doing this project quickly, that have experience in EA with minimum 20 projects finish, and have good review and reputation from their client Share your link review, if you not qualified, dont apply
Hi everyone I have a question, is there anyone who can rewrite the code from tradinvivew pineditor to mql5 meta trader? It is about 150 line. My strategy has 50% success rate with RR 2,6. Tested for last one year, strategy works only in bull market. This is trading on gold, unfortunately I am not in the best financial position, in return I would send you the code, if you don't like it I understand that you will stop

Información sobre el proyecto

Presupuesto
30 - 200 USD
Plazo límite de ejecución
de 1 a 10 día(s)

Cliente

Encargos realizados2
Número de arbitrajes0