Quote:
|
Originally Posted by FlatLine
I am able to get the value of my indicator using:
double MyLevel=iCustom(NULL,0,"MyIndicator",0,0); // The current level
But i also need the color. I need to know if it is red or green. I have searched through this site and i haven't seen any code that will retreive the color of the indicator.
I did find this in the documentation.
color oldColor=ObjectGet("hline12", OBJPROP_COLOR);
But I couldn't figure out how to get my inidcator in there instead of hline12.
BTW, my idicator is in the main window.
Any help would be appreciated.
|
Maybe this is to simple : old color = indicator_color
Forgive me if this is inapropirate (i am a newbie) but I recently used that to comment on the color of my indicator in the main window.
would be happy if this helps.