Moving Average Expert Advisor

Specification

Hi,


I will like to have an expert advisor based on 9 period simple moving average. I want the bot to be able to open a sell order after 8 consecutive candles have close prices above the 9 period simple moving average and also open a buy order after 8 consecutive candles have close prices below the 9 period simple moving average.


I also want the bot to open a maximum of one order in 24 hours or if I can specify how many orders it can open. It also open only one order at a time.


See the pine script I want to convert to forex EA below.


Thanks.


//@version=2 

//@November 26, 2021 

//@Author: Fisayo 

study(title="8barsabove9ema", shorttitle="MAsell", overlay=true)


// Checkbox's for the other 2 MA's

a = input(true, title="Enable 2nd MA")


len = input(9, minval=1, title="Length")



src = input(close, title="Source")



out = sma(src, len)




SellAlert = close > open and close > out and (close - out) > 0.05 and close[1] > out[1] and close[2] > out[2] and close[3] > out[3] and close[4] > out[4] and close[5] > out[5] and close[6] > out[6] and close[7] > out[7]


plotshape(SellAlert, style=shape.arrowdown, location=location.abovebar)


alertcondition(condition=(SellAlert), message="8 bars above 9 ema")


plot(out, title="EMA", color=blue)

Responded

1
Developer 1
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
2
Developer 2
Rating
(346)
Projects
543
32%
Arbitration
24
67% / 8%
Overdue
15
3%
Free
3
Developer 3
Rating
(236)
Projects
418
34%
Arbitration
53
36% / 40%
Overdue
153
37%
Busy
4
Developer 4
Rating
(14)
Projects
14
21%
Arbitration
1
0% / 100%
Overdue
1
7%
Free
5
Developer 5
Rating
(251)
Projects
400
54%
Arbitration
9
67% / 22%
Overdue
36
9%
Free
6
Developer 6
Rating
(126)
Projects
160
36%
Arbitration
4
25% / 50%
Overdue
13
8%
Free
7
Developer 7
Rating
(38)
Projects
50
10%
Arbitration
1
0% / 0%
Overdue
8
16%
Free
8
Developer 8
Rating
(132)
Projects
170
18%
Arbitration
17
47% / 18%
Overdue
0
Working
9
Developer 9
Rating
(439)
Projects
545
25%
Arbitration
21
38% / 38%
Overdue
83
15%
Free
10
Developer 10
Rating
(3)
Projects
5
0%
Arbitration
0
Overdue
0
Free
11
Developer 11
Rating
(57)
Projects
72
22%
Arbitration
13
46% / 15%
Overdue
5
7%
Free
12
Developer 12
Rating
(568)
Projects
641
41%
Arbitration
21
57% / 29%
Overdue
47
7%
Working
13
Developer 13
Rating
(92)
Projects
132
35%
Arbitration
13
38% / 31%
Overdue
32
24%
Free
14
Developer 14
Rating
(219)
Projects
370
42%
Arbitration
145
17% / 41%
Overdue
124
34%
Free
15
Developer 15
Rating
(52)
Projects
97
24%
Arbitration
10
20% / 20%
Overdue
12
12%
Working
16
Developer 16
Rating
(126)
Projects
151
48%
Arbitration
6
83% / 17%
Overdue
2
1%
Free
17
Developer 17
Rating
(66)
Projects
143
34%
Arbitration
10
10% / 60%
Overdue
26
18%
Free
18
Developer 18
Rating
(56)
Projects
175
71%
Arbitration
4
100% / 0%
Overdue
1
1%
Free
19
Developer 19
Rating
(8)
Projects
13
31%
Arbitration
1
100% / 0%
Overdue
0
Free
20
Developer 20
Rating
(563)
Projects
932
47%
Arbitration
301
59% / 25%
Overdue
124
13%
Working
21
Developer 21
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
I want to make a new dashboard using 3 common indicators and the ADX indicator , which you must supply I have a MA dash which you can strip & reuse if it helps you I tried to cover all questions in the attached but i'm sure there'll be more
I want the script in mql5 language for my martingale strategy. The script should open trades in both directions buy and sell and if any trade closes in loss then open new trade in that direction by using the next volume and when trade closes in profit then reset the volume to first from volume list and also maximum consecutive losses limit will apply. If trades closes consecutively in losses and hits the limit then
Long Position 1. Trend Line: When a Lower High (LH) is formed, draw a trend line from the previous Higher High (HH) to the new LH. 2. Trend Line Adjustment: If a new Lower High (LH) is formed without breaking the trend line, redraw the trend line to the new LH. Draw a trend line between the Higher High (HH) and the Higher Low (HL). If a new Higher High (HH) is formed, remove the previous trend line and draw a new one
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
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
I need EA that works on MT5 to be able to do the following: - Can recognize Support/Resistance area - Can recognize VWAP direction. - Can recognize RSI. - Can recognize Double Top/bottom, Bullish/Bearish hammer candle, Bullish/bearish engulfing candle. - Ability to set Stoploss below/above support/resistance, but risk must be fixed at a certain price. - Stoploss
I want a program that will help calculate and enter the market on full margin for me. I just need to put in the price for entry, Stop loss and TP then it will calculate the lot sizes for entering the trade on full margin on Mt5
I am seeking a highly skilled and experienced developer to assist with an important project. I need a development of an automated trading bot for NinjaTrader, utilizing a 4 SMA (Simple Moving Average) crossing strategy, with additional custom diversions for trade entries. The bot needs to be based on a strategy involving the crossing of four different SMAs. The exact periods for these SMAs and the conditions for

Project information

Budget
40+ USD
For the developer
36 USD