View Single Post
  #1 (permalink)  
Old 07-29-2006, 04:38 PM
FlatLine FlatLine is offline
Junior Member
 
Join Date: Apr 2006
Posts: 5
FlatLine is on a distinguished road
Help getting the color of a an indidator.

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.
Reply With Quote