Script to close all trades based on custom indicator

Tarea técnica

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  

Han respondido

1
Desarrollador 1
Evaluación
(328)
Proyectos
538
66%
Arbitraje
53
21% / 40%
Caducado
169
31%
Libre
Ha publicado: 1 ejemplo
2
Desarrollador 2
Evaluación
(56)
Proyectos
92
62%
Arbitraje
0
Caducado
4
4%
Libre
3
Desarrollador 3
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
4
Desarrollador 4
Evaluación
(44)
Proyectos
58
3%
Arbitraje
7
0% / 57%
Caducado
5
9%
Trabaja
5
Desarrollador 5
Evaluación
(39)
Proyectos
50
18%
Arbitraje
6
33% / 50%
Caducado
0
Libre
6
Desarrollador 6
Evaluación
(29)
Proyectos
49
22%
Arbitraje
14
29% / 21%
Caducado
13
27%
Libre
7
Desarrollador 7
Evaluación
(618)
Proyectos
1428
59%
Arbitraje
31
81% / 0%
Caducado
10
1%
Libre
8
Desarrollador 8
Evaluación
(55)
Proyectos
66
58%
Arbitraje
1
0% / 0%
Caducado
0
Libre
9
Desarrollador 9
Evaluación
(17)
Proyectos
17
18%
Arbitraje
5
20% / 60%
Caducado
2
12%
Trabaja
10
Desarrollador 10
Evaluación
(322)
Proyectos
499
67%
Arbitraje
5
40% / 0%
Caducado
4
1%
Libre
Ha publicado: 8 ejemplos
11
Desarrollador 11
Evaluación
(7)
Proyectos
14
21%
Arbitraje
1
0% / 100%
Caducado
3
21%
Libre
12
Desarrollador 12
Evaluación
(1)
Proyectos
2
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
13
Desarrollador 13
Evaluación
(772)
Proyectos
1039
44%
Arbitraje
50
8% / 50%
Caducado
116
11%
Libre
14
Desarrollador 14
Evaluación
(568)
Proyectos
641
41%
Arbitraje
25
48% / 36%
Caducado
46
7%
Trabaja
15
Desarrollador 15
Evaluación
(493)
Proyectos
1022
58%
Arbitraje
30
27% / 23%
Caducado
133
13%
Trabaja
16
Desarrollador 16
Evaluación
(43)
Proyectos
66
12%
Arbitraje
12
58% / 42%
Caducado
1
2%
Libre
17
Desarrollador 17
Evaluación
(452)
Proyectos
565
26%
Arbitraje
24
42% / 38%
Caducado
85
15%
Libre
Ha publicado: 6 ejemplos
18
Desarrollador 18
Evaluación
(549)
Proyectos
636
33%
Arbitraje
42
40% / 45%
Caducado
11
2%
Ocupado
19
Desarrollador 19
Evaluación
(77)
Proyectos
243
74%
Arbitraje
7
100% / 0%
Caducado
1
0%
Libre
Ha publicado: 1 artículo
20
Desarrollador 20
Evaluación
(2)
Proyectos
4
50%
Arbitraje
0
Caducado
2
50%
Libre
21
Desarrollador 21
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
22
Desarrollador 22
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
23
Desarrollador 23
Evaluación
(69)
Proyectos
146
34%
Arbitraje
13
8% / 62%
Caducado
26
18%
Libre
Ha publicado: 6 ejemplos
24
Desarrollador 24
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
25
Desarrollador 25
Evaluación
(2)
Proyectos
1
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
Solicitudes similares
hello, please take a moment to review my project. It is for Quanttower. it is very detailed in the instructions. Thank you, Just let me know if you can do it and the whats the cost and timeframe
Key Requirements: Source Account: Connect to a Master account using Investor (Read-only) Password. Destination Account: Execute trades on a Live Slave account with full trading access. Currency Focus: The system must handle Currency Pairs accurately, including symbol mapping (e.g., EURUSD to EURUSD.m) between different brokers. Stealth Features: Remove/Disable all trade comments. Assign custom Magic Numbers to the
I need a developer to start robot from scratch based on existing EA that is running live. I do not have the source file as my previous coder did not give it to me. What I do have is the investor password which is running the EA from the coder side but not from my end. I like someone to monitor the account and re create the same system for me
Project Overview: I am looking for a highly experienced MetaTrader 4 (MQL4) developer to build a sophisticated automated trading system. This is not a standard grid bot; it requires complex trade management, dynamic exposure rebalancing, and a custom "Salami" liquidation module for partial loss mitigation . Key Features to Implement: Virtual Grid & Dynamic Trend: Price-action-based grid triggers without pending
We are looking for a professional developer or trader who already has a proven profitable EA or strategy based mainly on price action logic. Important requirements: No Martingale No Grid No Micro-scalping Avoid heavy indicator-based strategies Strategy should be based mainly on price behavior / market structure We are not looking for aggressive systems that promise unrealistic returns. Our focus is on stable
I run an ea it makes good profits bit that one bad grid blows up the account. I want an EA which runs parallel to it which can intelligently close bad trades or grids. It shouldn't close recoverable trades but close very bad entries and grids. It can even close with hedging. The goal recover max and also not blow up the account
I am looking for an expert MQL5 developer to build a high-precision Hedging System between two different MT5 brokers running on the same local PC. Core Objective: Execute opposite (inverse) trades between a Master and Slave account (e.g., Master BUY = Slave SELL, Master SELL = Slave BUY). The Challenge: Standard "Trade Copiers" are insufficient as they cannot prevent single-legged exposure when using manual trading
I want robot that can help me trade and make some money so that I can be able to learn from it while I'm still in depot account now.Is how it gonna help me with some money
Hello, I have two requests: First: Feature Modification Request Currently, the EA places only one pending order at a time. I want to modify this to place two opposite pending orders (Buy Stop and Sell Stop) simultaneously, with the distance between them aligned with the existing Breakeven and Trailing Stop settings in the bot. How it should work: The EA places a Buy Stop above current price and a Sell Stop
Hello, I need a professional MT5 Expert Advisor for currency trading. PAIRS: EURUSD, GBPUSD, USDJPY, USDCHF TIMEFRAME: M15 STRATEGY: - EMA 8 cross EMA 21 (entry signal) - EMA 50 for trend filter - RSI 14 confirmation (Buy > 52, Sell < 48) - No trade if RSI > 75 or < 25 SESSION: London + New York only 07:00 to 17:00 GMT No weekend trading TRADE MANAGEMENT: - Lot size: 0.06 - Take Profit: $15 per trade - Stop Loss: $8

Información sobre el proyecto

Presupuesto
30 - 50 USD