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
(549)
Projetos
1332
59%
Arbitragem
28
82% / 0%
Expirado
10
1%
Livre
5
Desenvolvedor 5
Classificação
(23)
Projetos
45
20%
Arbitragem
24
29% / 46%
Expirado
12
27%
Livre
6
Desenvolvedor 6
Classificação
(58)
Projetos
76
33%
Arbitragem
9
78% / 11%
Expirado
7
9%
Livre
7
Desenvolvedor 7
Classificação
(266)
Projetos
540
50%
Arbitragem
55
40% / 36%
Expirado
224
41%
Livre
8
Desenvolvedor 8
Classificação
(96)
Projetos
143
76%
Arbitragem
0
Expirado
2
1%
Livre
9
Desenvolvedor 9
Classificação
(563)
Projetos
932
47%
Arbitragem
302
59% / 25%
Expirado
124
13%
Ocupado
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
10
10% / 60%
Expirado
26
18%
Livre
12
Desenvolvedor 12
Classificação
(87)
Projetos
114
26%
Arbitragem
7
29% / 57%
Expirado
5
4%
Livre
Pedidos semelhantes
Ready made welcome Software where i can add and delete licenses for an EA. The EA will need the license as a parameter, which should only be applicable to a particular account number, only then with a valid license it will be possible to trade. The license system will check if the license is valid. it should work on both mt4 and 5 The Licensing should also accept all my upcoming EAs and INDICATORS It should be
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
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 need two trading view indicators to be on Mt4 .i want them to work the same way that they do on trading view if possible.i will send the indicators
Function (A) simple to do___________________________________________________ //+------------------------------------------------------------------+ //| Expert Tick Function | //+------------------------------------------------------------------+ void OnTick() { F1(); F2(); F3(); } //+------------------------------------------------------------------+ bool F1(){ extern bool F1(); Set to external (false) or (true)
Ok 30+ USD
thacksc d trttt rtrt in super market fddf dghfg tdhdthdt gdydtydt jnjnjndf gd gdfg dgd gd t rt r te tr sf fdsffsdgs g dfg dg d dfh f hfh dh d hd fh dh dt y ty dry dr td ryd ddry
hi , i am looking for a Grid EA with some basic type of EA but fully functional and final one. so anyone who can do perfect EA should contact. plan is discussed as below. start and end time, and days of active deactive button should be added in dashboard or else like if we want to close EA for any future day or days in coming week so before time we should be able to set. when EA starts. it opens one buy or sell and
Hi, I would Like an EA ORDER PANEL for MT5 which allows me to place limit orders . The only addition I would like compared to other order panels, is an o ption to place a reversal trade if the original idea is stopped out. For example: I place a Short trade at 1.2120 with a 20 pip Stop Loss and a 100 pip target IF the SL is hit, then I want a Long trade to be place at 1.2120 with the same size SL and TP (20pip and
I need the following modules as per this sample indicator, then integrated with RSD Candles. look into the sample input settings, ................................................. ......................................................................................................... .......................................................................................................... ................previous
hello everyone I need to create an ea that creates signals based on the indicator on trading view and transmits it directly to mt5, so that the signals are created on trading view and orders are opened in mt5

Informações sobre o projeto

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