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

Specification

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.



Responded

1
Developer 1
Rating
(586)
Projects
918
46%
Arbitration
31
39% / 29%
Overdue
93
10%
Working
2
Developer 2
Rating
(169)
Projects
204
30%
Arbitration
25
40% / 44%
Overdue
12
6%
Free
3
Developer 3
Rating
(277)
Projects
334
55%
Arbitration
14
36% / 29%
Overdue
1
0%
Free
4
Developer 4
Rating
(137)
Projects
167
35%
Arbitration
11
91% / 0%
Overdue
0
Free
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(82)
Projects
86
57%
Arbitration
25
0% / 84%
Overdue
19
22%
Free
7
Developer 7
Rating
(253)
Projects
407
38%
Arbitration
85
42% / 19%
Overdue
70
17%
Loaded
8
Developer 8
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
10
Developer 10
Rating
(66)
Projects
143
34%
Arbitration
10
10% / 60%
Overdue
26
18%
Free
Similar orders
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
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

Project information

Budget
30+ USD
VAT (19%): 5.7 USD
Total: 35.7 USD
For the developer
27 USD