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

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
(10)
Projects
13
15%
Arbitration
0
Overdue
1
8%
Working
2
Developer 2
Rating
(1255)
Projects
1671
49%
Arbitration
52
71% / 12%
Overdue
37
2%
Free
3
Developer 3
Rating
(2)
Projects
2
50%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(618)
Projects
968
46%
Arbitration
32
38% / 34%
Overdue
96
10%
Working
Published: 6 codes
5
Developer 5
Rating
(156)
Projects
280
35%
Arbitration
14
29% / 50%
Overdue
42
15%
Free
6
Developer 6
Rating
(44)
Projects
46
9%
Arbitration
3
33% / 33%
Overdue
2
4%
Loaded
7
Developer 7
Rating
(31)
Projects
42
14%
Arbitration
2
0% / 0%
Overdue
1
2%
Working
Published: 2 codes
8
Developer 8
Rating
(256)
Projects
380
25%
Arbitration
23
61% / 22%
Overdue
1
0%
Working
9
Developer 9
Rating
(418)
Projects
660
33%
Arbitration
31
74% / 6%
Overdue
20
3%
Working
10
Developer 10
Rating
(292)
Projects
298
69%
Arbitration
2
100% / 0%
Overdue
0
Free
Published: 1 code
11
Developer 11
Rating
(164)
Projects
212
20%
Arbitration
18
44% / 17%
Overdue
0
Working
12
Developer 12
Rating
(29)
Projects
42
74%
Arbitration
3
67% / 0%
Overdue
0
Free
13
Developer 13
Rating
(295)
Projects
525
35%
Arbitration
63
33% / 35%
Overdue
189
36%
Loaded
14
Developer 14
Rating
(574)
Projects
945
47%
Arbitration
303
59% / 25%
Overdue
125
13%
Free
15
Developer 15
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
16
Developer 16
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Working
17
Developer 17
Rating
(77)
Projects
233
73%
Arbitration
6
100% / 0%
Overdue
1
0%
Free
18
Developer 18
Rating
(536)
Projects
614
34%
Arbitration
34
38% / 47%
Overdue
9
1%
Busy
Similar orders
the screenshot is what it looks like i want it to use all the same indicators that the trading view dials have whatever payment is necessary is necessary I'm willing to pay the quicker the better and the more exact the better
Core Features - *Consecutive Candle Counting*: The EA will count consecutive bullish or bearish candles and generate trading signals based on predefined thresholds. - *Separate Inputs*: The EA will have separate input parameters for bullish and bearish candles, allowing users to customize the strategy for each type of candle. - *Customizable Thresholds*: Users can set the minimum number of consecutive candles
Hello developer I'm searching of a high performance scalping robot that can fully automate trading on Xauusd using the 1 min ,5 min and 15 min timeframe my budget is 30$
Scalping EA 30+ USD
Hello developer I'm searching of a high performance scalping robot that can fully automate trading on nas100 and Xauusd using the 1 min,5 min and 15 min timeframe my budget is 30$
I am looking for an EA to pass prop firm challenges and use in Funded Account . if you have already built such in the past i can take it The EA has to comply with the following rules: MUST HAVE STOPLOSS Follow Prop Firm rules , Please provide evidence of the EA working & Profitable results Have Proper DD , Profit target etc Let's Get it done this now . NO TIME WASTE ONLY GENUINE SELLER WHO CAN PROVE IT WORKS
I am looking for an EA to pass prop firm challenges and use in Funded Account . (for example NOVA FUNDING, FTMO, MFF, MYFUNDEDFX) and be able to continuously use it on live accounts. Please provide evidence of the EA working & Profitable results. The EA has to comply with the following rules: MUST HAVE STOPLOSS Follow Prop Firm rules , Please provide evidence of the EA working & Profitable results Profit 1-5% min
Hi Programmers, I want to create an EA that will make use of the average prices to determine the direction of the market and take bids accurately towards the direction until it reaches the maximum distance for taking bids. It will also consider a profit to loss ratio which will be based on risk as a % of the account balance. As you can see from the picture and the prices showed , the prices represent the manually
Description: I need an EA for MetaTrader 5 with the following features: On-chart panel for manual trade setup (Entry, TP, SL, Lot Size). EA automatically manages a sequence of additional grid orders once the first order is triggered. EA dynamically adjusts TP/SL levels of active trades when new grid orders are added. Must prevent duplicate order sets. Optional: “Close All Trades” button. Requirements: Proven MQL5
(I had a few horrible experiences here dealing with time and money wasters, SO YOU MUST KNOW WHAT I'M EXACTLY ASKING FOR OR WE GET NOWHERE!!!)Looking for an EA that has been previously tested and can pass prop firm challenges. You will need to demonstrate the EA to showcase its true nature. Please only apply if you have a system ready. This can be a previous job you already did for someone, or have something in the
We have a working price prediction engine for (BTC, ETH, SOL) at fixed 5-minute intervals and want to build a robust backtesting system that evaluates these predictions against MECX futures prices. The goal is to measure baseline directional accuracy and then explore conditional strategies that improve accuracy beyond a 60% milestone. Data Overview Predictions Table (public.price_predictions_5m) One row per asset

Project information

Budget
30 - 60 USD
VAT (20%): 6 - 12 USD
Total: 36 - 72 USD
For the developer
27 - 54 USD

Customer

(1)
Placed orders2
Arbitrage count0