Download MetaTrader 5

Custom indicator color

To add comments, please log in or register
Do you wonder how to use widgets? Read the article!
Piratone
38
Piratone 2014.08.19 17:43 

Hi all,

i need to capture with code a custom indicator color after it has been changed manually from interface (see attached image)

Is it possible ?

Thanks.

qjol
3243
qjol 2014.08.19 22:02  
Piratone:


(see attached image)

there is no image 

Is it possible ?

in this century everything is possible

Piratone
38
Piratone 2014.08.20 09:45  
qjol:


true...everything is possible in absolute world, but in relative no :)

now the image...sorry...

seem doesn't attach file....mah...anyway...it's the palette screen to change color in a custom indicator.

Simon Gniadkowski
Moderator
18001
Simon Gniadkowski 2014.08.20 11:19  
Piratone:

true...everything is possible in absolute world, but in relative no :)

now the image...sorry...

seem doesn't attach file....mah...anyway...it's the palette screen to change color in a custom indicator.

To attach an image . . . 

 

From what I remember what you are trying to do is not possible . . . things may have changed for mql4.5 though.

Alain Verleyen
Moderator
30731
Alain Verleyen 2014.08.20 11:50  
Piratone:

Hi all,

i need to capture with code a custom indicator color after it has been changed manually from interface (see attached image)

Is it possible ?

Thanks.


You can only do that from within the indicator. Not directly from an EA or other code.
qjol
3243
qjol 2014.08.20 11:54  

angevoyageur:
 

Not directly from an EA or other code.



what about iCustom ?
Alain Verleyen
Moderator
30731
Alain Verleyen 2014.08.20 12:05  
qjol:

what about iCustom ?
For a color ?
qjol
3243
qjol 2014.08.20 12:52  

nop

to retrieve the main code who makes the color !!! 

Alain Verleyen
Moderator
30731
Alain Verleyen 2014.08.20 13:33  
qjol:

nop

to retrieve the main code who makes the color !!! 

Sorry, I don't understand what you mean. From what I understand the OP want to catch by code when an indicator's color is changed, iCustom can't help in this case.
Piratone
38
Piratone 2014.08.20 15:41  

it's right Raptor and Ange...i think is not possible in MQL4.

qjol...i'm searching to intercept color from palette mask on manual action....no iCustom, obviously, i know my initial parameter (with #Property indicator_color(n)).

Thanks guys.

Halley
198
Halley 2014.08.20 17:35  
Piratone:

it's right Raptor and Ange...i think is not possible in MQL4.

qjol...i'm searching to intercept color from palette mask on manual action....no iCustom, obviously, i know my initial parameter (with #Property indicator_color(n)).

Thanks guys.



In case the indicator code is available, you may add broadcasting a custom event to all charts after you detected colour change.
12
To add comments, please log in or register