Script to close all trades based on custom indicator

Specification

Please I need a script to close all trade when price break below or above moving average and also allows trade to continue in the new direction
For example: buying when price is above moving average, when price go below moving average close all running trades and start selling.. vice versa  

Responded

1
Developer 1
Rating
(326)
Projects
536
67%
Arbitration
52
21% / 38%
Overdue
169
32%
Working
Published: 1 code
2
Developer 2
Rating
(56)
Projects
92
62%
Arbitration
0
Overdue
4
4%
Free
3
Developer 3
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(42)
Projects
55
4%
Arbitration
5
0% / 60%
Overdue
4
7%
Free
5
Developer 5
Rating
(39)
Projects
50
18%
Arbitration
5
40% / 40%
Overdue
0
Free
6
Developer 6
Rating
(29)
Projects
49
22%
Arbitration
13
31% / 15%
Overdue
13
27%
Working
7
Developer 7
Rating
(612)
Projects
1422
59%
Arbitration
31
81% / 0%
Overdue
10
1%
Free
8
Developer 8
Rating
(55)
Projects
66
58%
Arbitration
1
0% / 0%
Overdue
0
Free
9
Developer 9
Rating
(17)
Projects
17
18%
Arbitration
5
20% / 60%
Overdue
2
12%
Working
10
Developer 10
Rating
(322)
Projects
498
67%
Arbitration
5
40% / 0%
Overdue
4
1%
Free
Published: 8 codes
11
Developer 11
Rating
(7)
Projects
14
21%
Arbitration
1
0% / 100%
Overdue
3
21%
Free
12
Developer 12
Rating
(1)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
0
Free
13
Developer 13
Rating
(771)
Projects
1038
44%
Arbitration
50
8% / 50%
Overdue
116
11%
Free
14
Developer 14
Rating
(568)
Projects
641
41%
Arbitration
23
52% / 30%
Overdue
46
7%
Working
15
Developer 15
Rating
(493)
Projects
1022
58%
Arbitration
30
27% / 23%
Overdue
133
13%
Working
16
Developer 16
Rating
(43)
Projects
65
11%
Arbitration
12
58% / 42%
Overdue
1
2%
Free
17
Developer 17
Rating
(451)
Projects
561
25%
Arbitration
22
41% / 36%
Overdue
85
15%
Free
Published: 6 codes
18
Developer 18
Rating
(535)
Projects
613
34%
Arbitration
34
38% / 47%
Overdue
9
1%
Busy
19
Developer 19
Rating
(77)
Projects
232
73%
Arbitration
6
100% / 0%
Overdue
1
0%
Free
20
Developer 20
Rating
(2)
Projects
4
50%
Arbitration
0
Overdue
2
50%
Free
21
Developer 21
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
22
Developer 22
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
23
Developer 23
Rating
(69)
Projects
146
34%
Arbitration
11
9% / 55%
Overdue
26
18%
Free
Published: 6 codes
24
Developer 24
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
25
Developer 25
Rating
(2)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
Similar orders
Hi Need the attached mql4 indicator to be converted 1:1 to mql5, need this done asap No changes to the mql5, need a 100% 1.1 convertion if this is possibly Thanks
Francis frank 30 - 300 USD
I need a Forex trading robot (Expert Advisor) for MT4/MT5 with the following features: Strategy: Buy when fast MA crosses above slow MA, Sell when fast MA crosses below slow MA. Adjustable inputs: Lot size, Stop Loss, Take Profit, Trailing Stop. Works on EUR/USD (but adjustable to other pairs). Should allow me to choose the timeframe (M15, H1, H4). Sends alert/notification when trade is opened or closed. Code should
I want EA 'Prop Firm limiter' for protecting account not breached. Below is the preset of the EA which I want made by ChatGPT. There is a lot of EA like this in MQL5 Market or elsewhere. You can refer one of these here. Drawdown Limiter Advanced | Buy Trading Utility for MetaTrader 5 Also in some webpages you can refer the source code. Account Protector for MetaTrader You can suggest better idea even though I don't
PLEASE READ: IF YOU ARE NOT GOING TO ACCEPT THE BELOW THEN PLEASE MOVE ON TO THE NEXT CLIENT. I NEED SOMEONE WHO WILL DO THE WORK FIRST AND THEN CREATE A BUILT-IN DEMO INDI AS PER SPECIFICATIONS BELOW WHICH HAS AN EXPIRY (A DAY OR 2) SO THAT I TEST THE INDI BEFORE WE CREATE THE ORDER. I HAVE HAD PEOPLE WHO PRESSURE ME TO CREATE THE ORDER AND THEN THEY END UP DEVELOPING A FAULTY INDICATOR. AND I HAVE GIVEN THEM THE
FRESHBOT 30+ USD
I want an EA for Gold (XAU/USD) with trend prediction and trade execution. Timeframe: 1H and 4H Indicators: - 50 EMA & 200 EMA (trend) - RSI (above 50 = bullish, below 50 = bearish) - MACD (for momentum) Entry Rules: - Buy if: - 50 EMA > 200 EMA - RSI > 50 - MACD line > signal line - Sell if: - 50 EMA < 200 EMA - RSI < 50 - MACD line < signal line Trade Settings: - Stop Loss: 30 pips - Take
I need an EA that can consistently make profits with low drawdowns and no dangerous martingale or grid. Requirements: - EA needs to open trades with dynamic lotsizes based on account balance or some other measure. - Minimum 15-30% growth monthly. - Open to any and all strategies, including advanced stuff like AI/SVM/HMM/etc or moderate/light martingale mechanism - No lower than 5mins timeframe for trading. - EA can
Pocket option bot 50 - 100 USD
I want a developer that can build a pocket option bot, You can only send application if you are experienced pocket option bot developer The bot should be develop base on my details that I will provided to the person that send application Best Regard
Job Description: · I am looking for an experienced MQL4 developer to create a high-speed scalping EA for US30 and DE40. The EA must be optimized for ultra-fast execution and should not rely on any indicators—only price action and pending orders (Buy Stop & Sell Stop). · I have written a complete and detailed documentation outlining the logic, execution flow, risk management, and required settings
Mthizo trades 30 - 200 USD
- *Currency Pairs*: Major pairs such as EUR/USD, XAU/USD and GBP/USD - *Funding Currency*: South African Rand (ZAR) - *Initial Deposit*: R100 (may require additional deposit for live trading) - *Risk Management*: Basic risk management features, such as stop loss and take profit - *Strategy*: Pre-defined strategy based on Smart Money Concept principles - *Cost*: Approximately R100-R200 (one-time cost or
Robot (metatrader5) 30 - 200 USD
I need an Expert Advisor (EA) for MetaTrader 5 that trades only XAUUSD (Gold). The strategy should include: • EMA (50) on M15 timeframe • RSI (14) with overbought = 70 and oversold = 30 • ATR (14) for Stop Loss and Take Profit calculation • Higher timeframe EMA (200 on H1) as trend filter • Lot size calculation based on risk percentage (% of balance) • Magic number for trade identification • Trading hours: 07:00 –

Project information

Budget
30 - 50 USD
For the developer
27 - 45 USD