Expert Advisor based on Price Action with Risk Management features

MQL5 Experts C++ Forex Ações

Trabalho concluído

Tempo de execução 3 dias

Termos de Referência

The idea for this trading system is as follows:

This is and "always in the market" type of system. Meaning that there is always an opened trade. Hence, market entries are performed whenever a new bar is created and there are no current opened trades.

The direction of the trade will depend on the previous bar direction and trades are closed whenever a bar closes in the opposite direction.

Trends, therefore, are determined by the previous bar direction and they continue until there is a new bar that closes in the opposite direction.

Trading Signals

Trading Signal:

For the 1st Trade or if the trend changes direction, the last bar direction is the signal.

If the previous bar was a green candle (closed upwards), it is a buy signal.

If it was a red candle (closed downwards), it is a sell signal. If it was an open=close, no new trade is performed.

Exits

The exits are performed if the candle changes color/direction relatively to the previous bar. Or if SL/TP are hit if they are activated- they should be optional inputs.

Lot sizing

Volume can be determined as: Fixed lots, from inputs. Or, as a risked percentage of the current balance.

How to measure risk

Lot Sizing Risk is based on the previous bar as follows:

For Buy orders: Risk = Open(current bar) - Low( previous bar)

For Sell Orders: Risk = High (previous bar) -Open (current bar)

Corner Cases:

For Buy signal: When Open (current bar) is lower than Low (previous bar), Risk = High (previous bar) - Low (previous bar)

For Sell signal: When Open (current bar) is higher than High (previous bar), Risk = High (previous bar) - Low (previous bar)

Therefore, having calculated the "risk" value, lot size shoud be calculated as:

lot = (risked% * current balance)/ Risk

The "Risked %" should be defined on the inputs if "Fixed lot" is false. Example:

Fixed Lots = False

Fixed Lot Size = 0.01

Risk = 0.01 (for 1% risk.)

Regarding SL and TP

SL, if activated from the inputs, should be set depending on the order type:

For Buy Orders: At the previous bar low - Current Spread.

For Sell Orders: At the previous bar High + Current Spread.

Corner cases:

For Buy signal: When Open (current bar) is lower than Low (previous bar), SL should be set on SL = Current Ask Price - (High (previous bar) - Low (previous bar)) - Current Spread.

For Sell signal: When Open (current bar) is higher than High (previous bar), SL = Current Bid Price + (High (previous bar) - Low (previous bar)) + Current Spread.

As For the Take Profit:

The Take Profit should be enabled or disabled from the inputs. And in case it is enabled, it should be set as a "double" multiple of the "Risk" called RR (as for Risk Reward) according to the previous detailed formula for risk.

Example: TP = true RR = 2 Which in this case, it would be 2 * Risk.

Symbol Considerations:

The Risk Management calculations should consider the Balance currency and the base and quote curriencies.

For example, if the Account currency is USD, it should calculate the risk accordingly whether the FX pair is EURUSD or USDJPY.

Also, if the Account currency is EUR, it should calculate the risk properly for the pair EURUSD or BTCEUR. Other non-forex pairs: NAS100, USA.30, NQ100, SPX500, US30 . These should be calculated in USD. For example, for BTC or EUR based account. For the rest, as a default, they should be considered as in USD.

I'm open to suggestions from the developer.

Respondido

1
Desenvolvedor 1
Classificação
(65)
Projetos
71
30%
Arbitragem
8
0% / 88%
Expirado
5
7%
Livre
2
Desenvolvedor 2
Classificação
(356)
Projetos
632
26%
Arbitragem
89
73% / 13%
Expirado
12
2%
Livre
3
Desenvolvedor 3
Classificação
(199)
Projetos
287
52%
Arbitragem
0
Expirado
1
0%
Livre
4
Desenvolvedor 4
Classificação
(544)
Projetos
1323
59%
Arbitragem
28
82% / 0%
Expirado
10
1%
Livre
5
Desenvolvedor 5
Classificação
(23)
Projetos
45
20%
Arbitragem
24
29% / 42%
Expirado
12
27%
Trabalhando
6
Desenvolvedor 6
Classificação
(58)
Projetos
76
33%
Arbitragem
9
78% / 11%
Expirado
7
9%
Livre
7
Desenvolvedor 7
Classificação
(262)
Projetos
536
50%
Arbitragem
54
41% / 37%
Expirado
224
42%
Trabalhando
8
Desenvolvedor 8
Classificação
(96)
Projetos
143
76%
Arbitragem
0
Expirado
2
1%
Livre
9
Desenvolvedor 9
Classificação
(561)
Projetos
928
48%
Arbitragem
301
59% / 25%
Expirado
123
13%
Carregado
10
Desenvolvedor 10
Classificação
(11)
Projetos
21
52%
Arbitragem
1
100% / 0%
Expirado
1
5%
Livre
11
Desenvolvedor 11
Classificação
(66)
Projetos
143
34%
Arbitragem
11
9% / 55%
Expirado
26
18%
Trabalhando
12
Desenvolvedor 12
Classificação
(87)
Projetos
114
26%
Arbitragem
7
29% / 57%
Expirado
5
4%
Livre
Pedidos semelhantes
Bot name: Blues🚀ProFx The bot should work with the 5mins time frame and it must move with the market price bar when it moves up 5pips and above let 10 trades be opened in the up direction and each having a stop loss of 20pips. After every 5mins if a new candle forms in the same direction let another 10 trades be opened in the same manner. Then when the market trend changes and a bearish candle starts to form and
Seeking an expert in LSTM (Long Short-Term Memory) for MT4 to implement the most cutting-edge and advanced form of LSTM with full feature integration. The ideal candidate will possess extensive experience in leveraging LSTM technology within MT4, ensuring optimal performance and profitability. Join us in revolutionizing trading strategies with state-of-the-art LSTM algorithms tailored for MT4. Add a zig zag to the
Hello there, I have a functional EA that I need a modification done to. Previous developer is overloaded with work and has been dragging his feet. Basically what I need is a modification to the Auto Lot option. Currently you can set a lot size per x amount of account balance and it will auto trade readjusting the lots based on account balance. What I am looking for is a modification that allows me to specify the
I have an EA which trades with XAUUSD with a grid system, and I need to add a few features: 1.- The EA works with an indicator and open many trades as a grid system. I need the EA to open JUST 1 TRADE INMEDIATELY WHEN THE TREND SHOWS. 2.- I need the EA to keep that trade open until it reaches TP or the reverse signal shows. The EA has already the 'close if reverse signal' parameter. 3.- I need to create a parameter
Just to confirm, the Indicator will have the following: Ability to upload multiple levels for multiple tickers (stocks, ETFs, Futures) Ability to change the color of the lines Ability to concatenate levels if on the same price. Example: Level 1 & Level 2 Ability to tick or untick levels that the user does not want to plot Ability to show price values on the level (user should be able to select this in the settings)
👋 Hey can you help me to convert mt4 to ctrader cbot? Options Required along with the conversion from given MQL4 source code to Ctrader Cbot just need one option on top of converting mt4 to cbot need an option to run cbot in selected direction with options as Buy/Sell/Buy-and-Sell
I have an already working codes but I want to automates those features to work on multiple tickers on Sierra Chart platform. And also I want users to be able to send texts on the chart. Can I get help with that
Hello developers here, I need a professional developer that can help me to develop an mt5 trading bot that works according to my strategy, I will be sharing my strategy in the inbox, Let me know if you can develop it, I will be waiting for your response
Strategy To Be Used 1. Order Blocks (4HR, Daily And Weekly) 2. FVG (For Entry) 3. Fibonacci Levels (TP) 4. HH/LL ( SL) Works in 1HR & 4HR (TF) Risk to reward minimum 2:1 (Default) Winrate 53.21% (Accuracy) tested on Live account of 1000$ May 14th to May 31st You can change the risk per trade percent Per day DD Limit *it should takes multiple entries at the same price point when the price touches weekly/ daily
MetaTrader MT4 to MT5 Conversion I'm on the lookout for a skilled developer proficient in MetaTrader who can assist me in converting my custom indicators and Expert Advisors (EAs) from MT4 to MT5. The primary goal of this project is to ensure that my tools are seamlessly compatible with both platforms. Key Requirements: - Proven experience in MetaTrader programming - A deep understanding of the differences between

Informações sobre o projeto

Orçamento
30 - 100 USD
Desenvolvedor
27 - 90 USD
Prazo
para 10 dias