ObjectGet Question

To add comments, please log in or register
Yellowbeard1781
30
Yellowbeard1781  

Trying to grasp the use of ObjectGet.  Trying to get values of fib levels.  Not sure I'm using it right.  Just getting zero for returned value.


Any help would be greatly appreciated.


Thanks!


    ObjectCreate(objname,OBJ_FIBO,0,dt2-2200,vHigh,dt2,vLow);
    
    ObjectSet(objname,OBJPROP_RAY,false);

    
    ObjectSet(objname,OBJPROP_COLOR,BoxColor);
    ObjectSet(objname,OBJPROP_LEVELCOLOR,FiboColor);

    
    ObjectSet(objname,OBJPROP_FIBOLEVELS,3);
    ObjectSet(objname,OBJPROP_LEVELSTYLE,STYLE_DOT);

    
    ObjectSet(objname,OBJPROP_FIRSTLEVEL,0.0);
    ObjectSet(objname,OBJPROP_FIRSTLEVEL+1,0.5);
    ObjectSet(objname,OBJPROP_FIRSTLEVEL+2,1.0);


    
    ObjectSetFiboDescription(objname,0,"Low = %$");     
    ObjectSetFiboDescription(objname,1,"Mid Price = %$");     
    ObjectSetFiboDescription(objname,2,"High = %$"+"    "+Spread);  // 


    
    double LowPrice =  ObjectGet("Low = %$",OBJPROP_PRICE1); //  ( (ObjectGet(objname, 0); 


    
      ObjectDelete("MP23163");
      Write("MP23163", Side, MP_X+40, MP_Y+8, "Low =  "+LowPrice, 8, "Tahoma", White);    









   
Clemens
21
Clemens  
I think this comment will guide you in the right direction
To add comments, please log in or register