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

Spécifications

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.



Répondu

1
Développeur 1
Évaluation
(586)
Projets
918
46%
Arbitrage
31
39% / 29%
En retard
93
10%
Travail
2
Développeur 2
Évaluation
(169)
Projets
204
30%
Arbitrage
25
40% / 44%
En retard
12
6%
Gratuit
3
Développeur 3
Évaluation
(277)
Projets
334
55%
Arbitrage
14
36% / 29%
En retard
1
0%
Gratuit
4
Développeur 4
Évaluation
(137)
Projets
167
35%
Arbitrage
11
91% / 0%
En retard
0
Gratuit
5
Développeur 5
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
6
Développeur 6
Évaluation
(82)
Projets
86
57%
Arbitrage
25
0% / 84%
En retard
19
22%
Gratuit
7
Développeur 7
Évaluation
(253)
Projets
407
38%
Arbitrage
85
42% / 19%
En retard
70
17%
Chargé
8
Développeur 8
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
9
Développeur 9
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
10
Développeur 10
Évaluation
(66)
Projets
143
34%
Arbitrage
10
10% / 60%
En retard
26
18%
Gratuit
Commandes similaires
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 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
I need stochastic div (hidden &regular ea) that should perform task in all tf's ..divergence is a repaint stly so i want to use it with candlestick flips .. so bet for it

Informations sur le projet

Budget
30+ USD
TVA (19%): 5.7 USD
Total: 35.7 USD
Pour le développeur
27 USD