About ObjectGet(). Is this bug ??

 

Hi,

I have a problem getting the levelcolor of a FibonacciChannel object.
For testing, I put a fibonacci channnel object on the chart and name it "test_fiboObj", then execute this code:

ObjectSet("test_fiboObj", OBJPROP_LEVELCOLOR, Red);
color fiboColor = ObjectGet("test_fiboObj",OBJPROP_LEVELCOLOR);
Print("LevelColor: ", fiboColor);

It changes the object level to Red color, but it prints:

LevelColor: 0

This is "OBJ_FIBOCHANNEL" only.

I can get the levelcolor from the other 5 fibo objects. (OBJ_FIBO, OBJ_FIBOTIMES, OBJ_FIBOFAN, OBJ_FIBOARC, OBJ_EXPANSION)

How can I get the levelcolor of the "OBJ_FIBOCHANNEL" ?

 
Did you draw this Fib Channel on the chart manually or did you add it via code ?
 
RaptorUK:
Did you draw this Fib Channel on the chart manually or did you add it via code ?


I tried both.

But i can't get.

Reason: