Same Indicator Handle value for different indicators on same chart. Bug? - page 4

 
Alain Verleyen #:

Ok I found the problem and reproduced it.

I moved the indicators in MQL5/Indicators.

2026.03.02 12:03:40.247    EA505693 (USTEC,M1)    EA: B launched through iCustom, handle 10
2026.03.02 12:03:40.252    B (USTEC,M1)    OnInit: ChartID 134169322501958094. RND=1805330128
2026.03.02 12:03:40.252    B (USTEC,M1)    1805330128: B [748]-> 0/40043
2026.03.02 12:03:40.262    A (USTEC,M1)    A: B launched through iCustom, handle 10
2026.03.02 12:03:40.263    B (USTEC,M1)    OnInit: ChartID 134169322501958094. RND=821904471
2026.03.02 12:03:40.263    B (USTEC,M1)    821904471: B [763]-> 0/40043
2026.03.02 12:04:01.537    B (USTEC,M1)    821904471: B [21274811]-> 40043/40044
2026.03.02 12:04:01.537    B (USTEC,M1)    1805330128: B [21286213]-> 40043/40044
2026.03.02 12:05:01.411    B (USTEC,M1)    821904471: B [81149159]-> 40044/40045
2026.03.02 12:05:01.411    B (USTEC,M1)    1805330128: B [81160561]-> 40044/40045

Previously I had not the problem because the indicators were in the SAME FOLDER as the EA.

Thanks for your help.

You're welcome.

So the bug could be related to indicator paths? Also in the Tester the problem is path dependant?

 
antony23 #:

I can confirm that i have double logs changing EA code to this: 


I get this log when i attach EA to chart:

Also refreshing che chart (right click-> refresh), i have same double logs.

Fixed from build 5665. In the Tester and on a live chart.
 
Alain Verleyen #:
Fixed from build 5665. In the Tester and on a live chart.

Hi Alain,

tested today 5800 and problem already exists, at least adding indicators manually (while with EA it is working correctly...).

To reproduce:

- manually adding indicator B to chart
- manually adding indicator A to same chart

And we have to instances of B.

2026.04.20 02:02:24.470 B (USTEC,M1)    OnInit: ChartID 134060885355397815. RND=1820225997
2026.04.20 02:02:24.470 B (USTEC,M1)    1820225997: B [929]-> 0/1000001
2026.04.20 02:02:27.948 B (USTEC,M1)    OnInit: ChartID 134060885355397815. RND=124010254
2026.04.20 02:02:27.948 B (USTEC,M1)    124010254: B [3703]-> 0/1000001
2026.04.20 02:02:59.901 B (USTEC,M1)    124010254: B [31956385]-> 1000001/1000002
2026.04.20 02:02:59.901 B (USTEC,M1)    1820225997: B [35431793]-> 1000001/1000002
 
antony23 #:

Hi Alain,

tested today 5800 and problem already exists, at least adding indicators manually (while with EA it is working correctly...).

To reproduce:

- manually adding indicator B to chart
- manually adding indicator A to same chart

And we have to instances of B.

That's a different case and is expected.
 
Alain Verleyen #:
That's a different case and is expected.
Can you explain the reason? What's the difference between adding automatically or manually indicators to chart?