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

Job finished

Execution time 13 minutes
Feedback from customer
Thank you for the quick work.
Feedback from employee
Thank you for the project. It was a pleasure working with you.

Specification

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


Files:

MQ5
lwma.mq5
9.1 Kb

Responded

1
Developer 1
Rating
(19)
Projects
23
9%
Arbitration
6
33% / 50%
Overdue
1
4%
Loaded
2
Developer 2
Rating
(1296)
Projects
1723
49%
Arbitration
52
71% / 12%
Overdue
38
2%
Working
3
Developer 3
Rating
(8)
Projects
8
38%
Arbitration
0
Overdue
0
Working
4
Developer 4
Rating
(630)
Projects
994
47%
Arbitration
33
36% / 36%
Overdue
98
10%
Free
Published: 6 codes
5
Developer 5
Rating
(162)
Projects
288
35%
Arbitration
18
22% / 61%
Overdue
42
15%
Working
6
Developer 6
Rating
(146)
Projects
155
42%
Arbitration
3
33% / 33%
Overdue
1
1%
Loaded
7
Developer 7
Rating
(39)
Projects
57
18%
Arbitration
6
33% / 17%
Overdue
1
2%
Free
Published: 2 codes
8
Developer 8
Rating
(273)
Projects
402
27%
Arbitration
40
40% / 50%
Overdue
1
0%
Free
9
Developer 9
Rating
(448)
Projects
709
34%
Arbitration
34
71% / 9%
Overdue
22
3%
Free
10
Developer 10
Rating
(308)
Projects
313
70%
Arbitration
2
100% / 0%
Overdue
0
Free
Published: 1 code
11
Developer 11
Rating
(190)
Projects
246
20%
Arbitration
22
50% / 18%
Overdue
0
Working
12
Developer 12
Rating
(35)
Projects
53
74%
Arbitration
4
50% / 0%
Overdue
0
Free
13
Developer 13
Rating
(312)
Projects
559
35%
Arbitration
79
32% / 43%
Overdue
203
36%
Working
14
Developer 14
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free
15
Developer 15
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
16
Developer 16
Rating
(6)
Projects
6
0%
Arbitration
0
Overdue
2
33%
Free
17
Developer 17
Rating
(77)
Projects
243
74%
Arbitration
7
100% / 0%
Overdue
1
0%
Free
Published: 1 article
18
Developer 18
Rating
(567)
Projects
656
32%
Arbitration
41
41% / 46%
Overdue
11
2%
Busy
19
Developer 19
Rating
(4)
Projects
8
0%
Arbitration
3
33% / 67%
Overdue
4
50%
Free
20
Developer 20
Rating
(452)
Projects
565
26%
Arbitration
24
42% / 38%
Overdue
85
15%
Working
Published: 6 codes
21
Developer 21
Rating
(2656)
Projects
3374
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Working
Published: 1 code
22
Developer 22
Rating
(442)
Projects
570
37%
Arbitration
106
39% / 33%
Overdue
17
3%
Free
23
Developer 23
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
24
Developer 24
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
25
Developer 25
Rating
(6)
Projects
5
0%
Arbitration
2
50% / 50%
Overdue
2
40%
Free
26
Developer 26
Rating
(10)
Projects
14
43%
Arbitration
0
Overdue
3
21%
Free
Similar orders
5.20buy-20.5sell 50 - 1000 USD
⸻ 🧠 Professional AI Prompt (Clear English Version) Act as a professional algorithmic trading engineer with deep expertise in developing automated trading systems for TradingView and MetaTrader. You have strong knowledge of market behavior, trend analysis, and risk management. Your task is to design a fully automated trading strategy based on the following requirements: ⸻ 🎯 Entry Conditions: • Open a BUY trade
I need a skilled MQL5 developer to build a fully functional Expert Advisor (EA) for MetaTrader 5 based on a simple but strict trading strategy. The EA will use EMA 50/200 trend detection combined with breakout and retest logic for entries. It must operate only during London and New York sessions and include solid risk management (fixed % risk, SL/TP, trade limits, and basic protection rules). APPLY ONLY IF YOU HAVE
VWAP BB Sniper EA Quantum VWAP Scalper SmartFlow FX Bot Institutional Edge EA 🧠 PRODUCT OVERVIEW VWAP + Bollinger Bands Auto Trading System A high-precision forex scalping bot designed to capture institutional price movements using: VWAP (fair value tracking) Bollinger Bands (volatility & entry timing) 👉 Built for fast, consistent intraday profits
Hello traders, I have Quantum queen v3.52, which is the latest version, available for $500 only. The price on the platform is around $1800, but I am offering it for a much lower price for serious buyers. Details: Product: Quantum queen Version: v3.52 Price: $500 Condition: Serious buyers only
EA for prop firms 30 - 500 USD
Hi, I am looking to purchase a MT5 EA that can show consistent profitability 5% each month with drawdown less than 9%. I am not ready to build a new one from scratch as i do not have the strategy in mind yet so i do not want to take the risk of building one but not sure if it works. Only apply if you have an existing proven and tested EA that can sell to me together with the source code. The Ea is for prop firm even
Early Killer EA 30+ USD
It must have automated stop loss. Something that can end poverty and kill the market early.It must take the trades for me whenever I start it it must work on tradeport ea
I WANT TO CONVERT MY INDICATOR TO ROBOT, BUT I DONT HAVE THE SOURCE CODE , THE PROGRAMMER WILL DEVELOP THE SOURCE CODE FOR THE JOB. THE STRAGY IS SIMPLE , THE ROBOT WILL EXECUTE A TRADE WHEN THE SIGNAL FROM THE INDICATOR APPEARS. BUY SIGNAL IS WHEN THE ARROW APPEAS ON THE LOWER ZONE ( SUPPORT ZONE) SELL SIGNAL WHEN THE ARROW APPEARS ON THE UPPER ZONE ( RESISTANCE ZONE).THE ROBOT WILL HAVE THE FOLLWING FEATURES (1)
CONVERT MQL4 ROBOT TO MQL5 Solana I have robot SOLANA i want to change my robot for MQL4 ROBOT TO MQL5 AND also change the name of the robot..i need it with the source code
requirements 1. A expert which can make a bridge between trading view and MT4 /MT5 My strategy which i work upon in trading view, that autobot system should buy, sell and take profit in MT4/MT5
I want a prop-firm compatible MT5 trading robot, not a fast or aggressive one, for passing Prop firm challenges of any account sizes and also capable of earning profit on funded account after passing the challenge. Objectives: – Pass a prop firm challenge safely within 2–4 weeks, not 1 week. – Focus on capital protection first, profit second. Risk & Money Management: – Risk per trade: 0.25%–0.5% max – No martingale

Project information

Budget
30 - 60 USD