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

Trabalho concluído

Tempo de execução 13 minutos
Comentário do cliente
Thank you for the quick work.
Comentário do desenvolvedor
Thank you for the project. It was a pleasure working with you.

Termos de Referência

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


Arquivos anexados:

MQ5
lwma.mq5
9.1 Kb

Respondido

1
Desenvolvedor 1
Classificação
(16)
Projetos
19
11%
Arbitragem
4
25% / 50%
Expirado
1
5%
Trabalhando
2
Desenvolvedor 2
Classificação
(1264)
Projetos
1684
49%
Arbitragem
52
71% / 12%
Expirado
37
2%
Livre
3
Desenvolvedor 3
Classificação
(5)
Projetos
5
20%
Arbitragem
0
Expirado
0
Trabalhando
4
Desenvolvedor 4
Classificação
(621)
Projetos
972
47%
Arbitragem
32
38% / 34%
Expirado
96
10%
Carregado
Publicou: 6 códigos
5
Desenvolvedor 5
Classificação
(159)
Projetos
284
35%
Arbitragem
17
24% / 59%
Expirado
42
15%
Carregado
6
Desenvolvedor 6
Classificação
(98)
Projetos
106
28%
Arbitragem
3
33% / 33%
Expirado
2
2%
Trabalhando
7
Desenvolvedor 7
Classificação
(39)
Projetos
57
18%
Arbitragem
6
33% / 17%
Expirado
1
2%
Livre
Publicou: 2 códigos
8
Desenvolvedor 8
Classificação
(268)
Projetos
396
27%
Arbitragem
38
39% / 50%
Expirado
1
0%
Livre
9
Desenvolvedor 9
Classificação
(433)
Projetos
686
34%
Arbitragem
32
72% / 9%
Expirado
22
3%
Livre
10
Desenvolvedor 10
Classificação
(300)
Projetos
306
69%
Arbitragem
2
100% / 0%
Expirado
0
Livre
Publicou: 1 código
11
Desenvolvedor 11
Classificação
(175)
Projetos
225
20%
Arbitragem
19
42% / 16%
Expirado
0
Carregado
12
Desenvolvedor 12
Classificação
(32)
Projetos
47
74%
Arbitragem
4
50% / 0%
Expirado
0
Trabalhando
13
Desenvolvedor 13
Classificação
(304)
Projetos
544
35%
Arbitragem
77
31% / 42%
Expirado
196
36%
Carregado
14
Desenvolvedor 14
Classificação
(574)
Projetos
945
47%
Arbitragem
309
58% / 27%
Expirado
125
13%
Livre
15
Desenvolvedor 15
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
16
Desenvolvedor 16
Classificação
(5)
Projetos
5
0%
Arbitragem
0
Expirado
1
20%
Trabalhando
17
Desenvolvedor 17
Classificação
(77)
Projetos
240
73%
Arbitragem
7
100% / 0%
Expirado
1
0%
Livre
18
Desenvolvedor 18
Classificação
(539)
Projetos
618
33%
Arbitragem
35
37% / 49%
Expirado
10
2%
Ocupado
19
Desenvolvedor 19
Classificação
(4)
Projetos
7
0%
Arbitragem
1
100% / 0%
Expirado
3
43%
Trabalhando
20
Desenvolvedor 20
Classificação
(451)
Projetos
563
26%
Arbitragem
24
42% / 38%
Expirado
85
15%
Trabalhando
Publicou: 6 códigos
21
Desenvolvedor 21
Classificação
(2622)
Projetos
3327
67%
Arbitragem
77
48% / 14%
Expirado
342
10%
Trabalhando
Publicou: 1 código
22
Desenvolvedor 22
Classificação
(442)
Projetos
570
37%
Arbitragem
106
39% / 33%
Expirado
17
3%
Livre
23
Desenvolvedor 23
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
24
Desenvolvedor 24
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
25
Desenvolvedor 25
Classificação
(5)
Projetos
4
0%
Arbitragem
2
50% / 50%
Expirado
2
50%
Livre
26
Desenvolvedor 26
Classificação
(6)
Projetos
10
30%
Arbitragem
0
Expirado
2
20%
Trabalhando
Pedidos semelhantes
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

Informações sobre o projeto

Orçamento
30 - 60 USD