Strategy with two steps: 1) decide once a day about the next day (e.g. "long") 2) go long if MA rereverses at a lower bollinger band on a smaller time frame

MQL5 Experts

Termos de Referência

I would like the bot to do the following basic checks:

1) Once a day

1.1 Once a day(e,g. at 23:00) compute MA(33) on the 1d time frame.

1.2 The standard deviation of the price difference (p-MA(33)) over N last candles (N is set as the input)

1.3 The current value s=(p[last]-MA(33))/std

1.4 If the result from 1.3 is higher than the input threshold S (s>S), then set "SHORT" as the 1d-direction. if s <S, set "LONG". Else hold on.


2) on the 15m timeframe.

2.1 compute Bollinger(13,1.5) which gives the bands: bol_up=MA(13)+1.5std, bol_down=MA(13)-1.5std

2.2 compute a MA(2)

If the result from 1) was SHORT,  and MA(2)>=bol_up, enter the market with a predefined amount (input variable).

If the result from 1) was LONG, and MA(2)<=bol_down, enter (market order) with a predefined amount (input variable)

If the result from 1) is "stand by", do nothing.


3) Tracking

If we are in the market:

3.1 if the profit is <0: exit if the market entry price (p_e) and the current price (p_c) differ more than 2std from the bollinger:

exit if abs(p_e-p_c)>std

3.2 If the profit increased and abs(p_e-p_c)>std, set the stop exit to p_e+0.1pip

3.3 If the profit increased more than (p_e-p_c)>2std, set the stop to p_c-std

Perform 3.2 and 3.3 only if the "best" price is reached. e.g. in the case of a "LONG" trade, check if p_e >max(p) since the market entry.



Respondido

1
Desenvolvedor 1
Classificação
(586)
Projetos
918
46%
Arbitragem
31
39% / 29%
Expirado
93
10%
Trabalhando
2
Desenvolvedor 2
Classificação
(169)
Projetos
204
30%
Arbitragem
25
40% / 44%
Expirado
12
6%
Livre
3
Desenvolvedor 3
Classificação
(277)
Projetos
334
55%
Arbitragem
14
36% / 29%
Expirado
1
0%
Livre
4
Desenvolvedor 4
Classificação
(137)
Projetos
167
35%
Arbitragem
11
91% / 0%
Expirado
0
Livre
5
Desenvolvedor 5
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
6
Desenvolvedor 6
Classificação
(82)
Projetos
86
57%
Arbitragem
25
0% / 84%
Expirado
19
22%
Livre
7
Desenvolvedor 7
Classificação
(253)
Projetos
407
38%
Arbitragem
85
42% / 19%
Expirado
70
17%
Carregado
8
Desenvolvedor 8
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
10
Desenvolvedor 10
Classificação
(66)
Projetos
143
34%
Arbitragem
10
10% / 60%
Expirado
26
18%
Livre
Pedidos semelhantes
I have a custom EA that works fine in the live market trading, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell orders, but I can't find anything, especially since it works fine in the real market and it opens both buys and sells
The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform
Hi, I have an indicator from my friend, I want to copy it to my own MT5 can you do that for me. Here is the link
I'm looking for someone to help me create an arbitrage trading robot that can trade on any decentralized exchange and forex market. I already have some source code to a strategy but would like to enhance it to make it profitable and automated
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
Hello Every one, Good day, I want from someone professional to create an EA is working on Mt5, This EA is working by depend on some indicators, and all those indicators must be working on MACD window, not on the chart, for more details please read my attached pdf file carefully. Many Thanks
I'm looking for an expert MQL5 developer that can create an EA that's based on my price action trading strategy with no indicators. The EA must analyze trades based on my price action rules, enter trades based on my price action rules, manage trades based on my price action rules and exit trades based on my price action rules
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of

Informações sobre o projeto

Orçamento
30+ USD
IVA (19%): 5.7 USD
Total: 35.7 USD
Desenvolvedor
27 USD