Download MetaTrader 5
To add comments, please log in or register
Do you wonder how to use widgets? Read the article!
gianluca
16
gianluca 2014.11.16 15:26 

hello, i'm trying to add custom levels to a Pitchfork as described here: https://docs.mql4.com/constants/objectconstants/enum_object/obj_pitchfork

 

ObjectCreate(0,"Pitch0",OBJ_PITCHFORK,0,ZZTime[3],ZZPrice[3],ZZTime[2],ZZPrice[2],ZZTime[1],ZZPrice[1]);
ObjectSetInteger(0,"Pitch0",OBJPROP_COLOR,clrRed);
ObjectSetInteger(0,"Pitch0",OBJPROP_STYLE,2);

ObjectSetInteger(0,"Pitch0",OBJPROP_LEVELS,4);

ObjectSetDouble(0,"Pitch0",OBJPROP_LEVELVALUE,0,0.5);
ObjectSetDouble(0,"Pitch0",OBJPROP_LEVELVALUE,0,-0.5);

ObjectSetDouble(0,"Pitch0",OBJPROP_LEVELVALUE,0,1);
ObjectSetDouble(0,"Pitch0",OBJPROP_LEVELVALUE,0,-1);

 

I can see the pitchfork but i can't see any level. what's wrong?

thanks in advance

/
To add comments, please log in or register