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

Trabajo finalizado

Plazo de ejecución 13 minutos
Comentario del Cliente
Thank you for the quick work.
Comentario del Ejecutor
Thank you for the project. It was a pleasure working with you.

Tarea técnica

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


Archivos adjuntos:

MQ5
lwma.mq5
9.1 Kb

Han respondido

1
Desarrollador 1
Evaluación
(16)
Proyectos
19
11%
Arbitraje
4
25% / 50%
Caducado
1
5%
Trabaja
2
Desarrollador 2
Evaluación
(1264)
Proyectos
1684
49%
Arbitraje
52
71% / 12%
Caducado
37
2%
Libre
3
Desarrollador 3
Evaluación
(5)
Proyectos
5
20%
Arbitraje
0
Caducado
0
Trabaja
4
Desarrollador 4
Evaluación
(621)
Proyectos
972
47%
Arbitraje
32
38% / 34%
Caducado
96
10%
Trabajando
Ha publicado: 6 ejemplos
5
Desarrollador 5
Evaluación
(159)
Proyectos
284
35%
Arbitraje
17
24% / 59%
Caducado
42
15%
Trabajando
6
Desarrollador 6
Evaluación
(98)
Proyectos
106
28%
Arbitraje
3
33% / 33%
Caducado
2
2%
Trabaja
7
Desarrollador 7
Evaluación
(39)
Proyectos
57
18%
Arbitraje
6
33% / 17%
Caducado
1
2%
Libre
Ha publicado: 2 ejemplos
8
Desarrollador 8
Evaluación
(268)
Proyectos
396
27%
Arbitraje
38
39% / 50%
Caducado
1
0%
Libre
9
Desarrollador 9
Evaluación
(433)
Proyectos
686
34%
Arbitraje
32
72% / 9%
Caducado
22
3%
Libre
10
Desarrollador 10
Evaluación
(300)
Proyectos
306
69%
Arbitraje
2
100% / 0%
Caducado
0
Libre
Ha publicado: 1 ejemplo
11
Desarrollador 11
Evaluación
(175)
Proyectos
225
20%
Arbitraje
19
42% / 16%
Caducado
0
Trabajando
12
Desarrollador 12
Evaluación
(32)
Proyectos
47
74%
Arbitraje
4
50% / 0%
Caducado
0
Trabaja
13
Desarrollador 13
Evaluación
(304)
Proyectos
544
35%
Arbitraje
77
31% / 42%
Caducado
196
36%
Trabajando
14
Desarrollador 14
Evaluación
(574)
Proyectos
945
47%
Arbitraje
309
58% / 27%
Caducado
125
13%
Libre
15
Desarrollador 15
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
16
Desarrollador 16
Evaluación
(5)
Proyectos
5
0%
Arbitraje
0
Caducado
1
20%
Trabaja
17
Desarrollador 17
Evaluación
(77)
Proyectos
240
73%
Arbitraje
7
100% / 0%
Caducado
1
0%
Libre
18
Desarrollador 18
Evaluación
(539)
Proyectos
618
33%
Arbitraje
35
37% / 49%
Caducado
10
2%
Ocupado
19
Desarrollador 19
Evaluación
(4)
Proyectos
7
0%
Arbitraje
1
100% / 0%
Caducado
3
43%
Trabaja
20
Desarrollador 20
Evaluación
(451)
Proyectos
563
26%
Arbitraje
24
42% / 38%
Caducado
85
15%
Trabaja
Ha publicado: 6 ejemplos
21
Desarrollador 21
Evaluación
(2622)
Proyectos
3327
67%
Arbitraje
77
48% / 14%
Caducado
342
10%
Trabaja
Ha publicado: 1 ejemplo
22
Desarrollador 22
Evaluación
(442)
Proyectos
570
37%
Arbitraje
106
39% / 33%
Caducado
17
3%
Libre
23
Desarrollador 23
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
24
Desarrollador 24
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
25
Desarrollador 25
Evaluación
(5)
Proyectos
4
0%
Arbitraje
2
50% / 50%
Caducado
2
50%
Libre
26
Desarrollador 26
Evaluación
(6)
Proyectos
10
30%
Arbitraje
0
Caducado
2
20%
Trabaja
Solicitudes similares
So I want to buy fully functional EA that is retard proof and makes money. on a signal trading pair need to make in a singal moth at least 3% profit with max 1% equity drowdown. I don't need screenshots i need demo version
Looking for a reliable Expert Advisor with a proven track record? I'm seeking an EA with source code that meets the following criteri *Requirements:* - .mq5 source code (well-commented and readable) - 4-year backtest (Jan 2022 - Dec 2025) with tick/data quality details - 1-month demo test on live/demo broker - ~15% monthly average returns (medium risk) - Max drawdown ≤15% (equity/drawdown report) - No grid
I need a custom MT5 Expert Advisor named “Dark Venus”. Strategy details: - Timeframe: M5 / M15 - Market: Forex (all major pairs) - Strategy type: Trend + Scalping - Indicators: • EMA (Fast & Slow) • RSI filter • ATR for Stop Loss & Take Profit - Trades only during low-spread sessions (London & New York) Trade Rules: - Buy when fast EMA crosses above slow EMA + RSI confirmation - Sell when fast EMA crosses below
Acquire existing profitable Expert Advisor with source code for client investment portfolio - Full .mq5 code (clean & commented) - 4+ years backtest (Jan 2022 - Dec 2025, 100% tick data) - ~10% monthly return - Max DD ≤15% - No grid/martingale (strictly enforced) - 1-month forward test required - Send trade history + EA details for review - Demo EA file needed for backtest replication - Open to any currency
i need the multi-chain dex bot with set up and installation i need you to help me set the copy reading wallet on binance or phantom with capital for 100 Euro to 1 Million in one year
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
I need an MQL5 indicator that identifies reversals without repainting or placing signals with an offset. The goal is to minimize lag and reduce whipsaw trades. Desired results are similar to the attached image. Requirements: - No repainting - No signal offset - Emphasis on reducing lag - MQL5 compatible - Clear, concise code If you have the expertise to create a reliable, high-performance indicator, let's discuss
I'm looking for a skilled trader/developer to share a proven scalping strategy on M1-M5 timeframes without using Martingale, Grid trading, or Hedge. Requirements: - Minimum trade duration: 2 minutes - Lot size: <20 - Proof of skill: Provide MT4/MT5 trade history report (PDF/HTML) - No High Frequency Trades - GMT+1 timezone, flexible hours - Price negotiable, performance-based compensation possible If you're a
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even

Información sobre el proyecto

Presupuesto
30 - 60 USD