Lwma close: if color[1] != color[2]

Lavoro terminato

Tempo di esecuzione 13 minuti
Feedback del cliente
Thank you for the quick work.
Feedback del dipendente
Thank you for the project. It was a pleasure working with you.

Specifiche

Hello, I'm looking for a programmer who knows the lwma indicator thoroughly. (mql5)

1, I have an mql5 EA that I start manually from the panel. I want the EA to only monitor the color change of the lwma indicator when the position is started. Only the lwma indicator color created from the data of closed candles is interesting. The color created from the unclosed - currently running - data is not interesting. So, if the lwma colors created during the last two closed candles do not match, the position should be closed.
color[1] != color[2] -- positionclose

2, I would like the EA to only take 1 position on a chart.

3, The magic number should be set so that it only closes a position on the chart where it was started.

Unfortunately, I can't extract the color data from the lwma indicator in the event of a color change.


I am attaching the lwma indicator and the EA.

The (close)program in the OnTick unit is not working.

Thanks


File:

MQ5
lwma.mq5
9.1 Kb

Con risposta

1
Sviluppatore 1
Valutazioni
(22)
Progetti
28
7%
Arbitraggio
9
33% / 33%
In ritardo
1
4%
In elaborazione
2
Sviluppatore 2
Valutazioni
(1305)
Progetti
1734
49%
Arbitraggio
55
67% / 16%
In ritardo
38
2%
Gratuito
3
Sviluppatore 3
Valutazioni
(8)
Progetti
9
33%
Arbitraggio
1
100% / 0%
In ritardo
0
Gratuito
4
Sviluppatore 4
Valutazioni
(636)
Progetti
1007
47%
Arbitraggio
33
36% / 36%
In ritardo
99
10%
In elaborazione
Pubblicati: 6 codici
5
Sviluppatore 5
Valutazioni
(162)
Progetti
289
35%
Arbitraggio
18
22% / 61%
In ritardo
43
15%
Gratuito
6
Sviluppatore 6
Valutazioni
(176)
Progetti
188
46%
Arbitraggio
3
33% / 33%
In ritardo
1
1%
Caricato
7
Sviluppatore 7
Valutazioni
(39)
Progetti
59
20%
Arbitraggio
6
33% / 17%
In ritardo
1
2%
In elaborazione
Pubblicati: 2 codici
8
Sviluppatore 8
Valutazioni
(274)
Progetti
403
28%
Arbitraggio
40
40% / 50%
In ritardo
1
0%
Gratuito
9
Sviluppatore 9
Valutazioni
(455)
Progetti
721
34%
Arbitraggio
35
71% / 9%
In ritardo
23
3%
Gratuito
10
Sviluppatore 10
Valutazioni
(323)
Progetti
328
71%
Arbitraggio
2
100% / 0%
In ritardo
0
Gratuito
Pubblicati: 1 codice
11
Sviluppatore 11
Valutazioni
(209)
Progetti
272
21%
Arbitraggio
24
54% / 17%
In ritardo
0
Gratuito
12
Sviluppatore 12
Valutazioni
(35)
Progetti
53
74%
Arbitraggio
4
50% / 0%
In ritardo
0
Gratuito
13
Sviluppatore 13
Valutazioni
(319)
Progetti
568
35%
Arbitraggio
82
30% / 45%
In ritardo
206
36%
Caricato
14
Sviluppatore 14
Valutazioni
(574)
Progetti
945
47%
Arbitraggio
309
58% / 27%
In ritardo
125
13%
Gratuito
15
Sviluppatore 15
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
16
Sviluppatore 16
Valutazioni
(7)
Progetti
7
0%
Arbitraggio
0
In ritardo
2
29%
Gratuito
17
Sviluppatore 17
Valutazioni
(78)
Progetti
246
74%
Arbitraggio
7
100% / 0%
In ritardo
1
0%
Gratuito
Pubblicati: 1 articolo
18
Sviluppatore 18
Valutazioni
(617)
Progetti
721
33%
Arbitraggio
46
48% / 41%
In ritardo
14
2%
Caricato
19
Sviluppatore 19
Valutazioni
(4)
Progetti
8
0%
Arbitraggio
3
33% / 67%
In ritardo
4
50%
Gratuito
20
Sviluppatore 20
Valutazioni
(453)
Progetti
566
26%
Arbitraggio
24
42% / 38%
In ritardo
85
15%
Gratuito
Pubblicati: 6 codici
21
Sviluppatore 21
Valutazioni
(2675)
Progetti
3414
68%
Arbitraggio
77
48% / 14%
In ritardo
342
10%
Gratuito
Pubblicati: 1 codice
22
Sviluppatore 22
Valutazioni
(443)
Progetti
570
37%
Arbitraggio
106
39% / 33%
In ritardo
17
3%
Gratuito
23
Sviluppatore 23
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
24
Sviluppatore 24
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
25
Sviluppatore 25
Valutazioni
(7)
Progetti
6
0%
Arbitraggio
4
25% / 75%
In ritardo
2
33%
Gratuito
26
Sviluppatore 26
Valutazioni
(10)
Progetti
14
43%
Arbitraggio
0
In ritardo
3
21%
Gratuito
Ordini simili
Project Description I am looking for an experienced MQL5/MT5 Expert Advisor developer to develop an automated trading EA for XAUUSD on the M3 timeframe , running on an Exness account . The EA will automate a manual strategy based on SNR/GAP zones , using two setup types: Price Rejection Price Correction The EA should identify valid BUY/SELL setups around predefined SNR/GAP areas, apply configurable RSI, SMA, EMA and
I need an MT5 Expert Advisor for XAUUSD (Gold) running on an Exness account. STRATEGY LOGIC The exact entry and exit rules will be provided in writing before development starts. Please quote for a single rule-based strategy with clearly separated logic, so the rules can be adjusted later without rewriting the whole EA. RISK MANAGEMENT (this is the priority of the project) - Risk per trade as a percentage of account
Modification of Trade_Panel_7 7.05 Objective . I have this utility “Trade_Panel_7 7.05” with which I open and close positions. Please refer to attached “Trade Panel Modification.jpg”. It shows an input parameter “Volume Step”. This parameter has the initial value of 0.02 as shown. This feature needs to be amended. Present Status . Value of lot size is increased by this “Volume Step”. I have built a whole series of
Hello Traders, Have a trading strategy or idea you want to automate? I specialize exclusively in MQL5 development, helping traders turn their concepts into professional trading solutions. Custom Expert Advisors — automate your strategy and reduce manual execution Custom Indicators — transform your market ideas into powerful trading tools Fix & Debug — identify errors and get your existing code working properly
please share: Strategy description — entry/exit rules, indicators used, timeframe(s), and instrument(s) (a written explanation, screenshots, or an existing indicator/EA to reference all work) Risk management rules — position sizing method (fixed lot / % risk), stop loss / take profit logic, max drawdown or daily loss limits, and whether martingale/grid/hedging is involved Broker & account details — broker name
I need a unique grid trading system for XAUUSD that combines entry, controlled two-sided grid expansion, DCA (Dollar Cost Averaging) basket profit control, hedging. Unlike traditional grid EAs that only trade against price, this unique grid system should dynamically build positions in both directions based on market movement, allowing flexible adaptation to changing conditions ie the grid needs to dynamically move
I need an experienced MQL5 developer to create a fully automated MT5 Expert Advisor called Ayoub Gold EA , focused exclusively on XAUUSD (Gold) . Main requirements: Platform: MT5 / MQL5. Fully automated BUY and SELL trading on XAUUSD. Must support broker suffixes such as XAUUSD, XAUUSD.f and XAUUSDm. Trading strategy based mainly on Range Breakout with trend confirmation. EMA, ADX and ATR filters. London/New York
Mashiri 50 - 10000 USD
I need a custom MetaTrader 5 indicator designed specifically for XAUUSD gold trading. The indicator should identify potential buy and sell opportunities, display clear entry and exit signals on the chart, provide alerts, and help identify market trends and possible reversals
Looking for an experienced Sierra Chart ACSIL/C++ developer to customize an existing footprint chart. I need 3 things: 7-Day ATR – calculate and display a configurable 7-day ATR. Custom Footprint – modify my existing footprint chart to match my preferred layout/data display. Automatic LVN – detect and plot Low Volume Nodes automatically based on volume distribution. I already have a working footprint chart, so no
//———————————————————————————————————————————————————————————————————— struct S_MCAV { double matureSum; double totalSum; double value; void Init () { matureSum = 0.0; totalSum = 0.0; value = 0.5; } void AddContext (int ctx) { totalSum += 1.0; if (ctx == 1) matureSum += 1.0; } void ApplyDecay (double rate) { matureSum *= rate; totalSum *= rate; } void Update () {

Informazioni sul progetto

Budget
30 - 60 USD