Edit Your Comment
help with Pitchfork Level ( OBJPROP_LEVELS )
Nov 17, 2014 at 07:43
तबसे मेंबर है Sep 13, 2013
4 पोस्टों
hello, i'm trying to add custom levels to a Pitchfork as described here: http://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
तबसे मेंबर है Mar 28, 2011
84 पोस्टों
Nov 17, 2014 at 19:12
तबसे मेंबर है Mar 28, 2011
84 पोस्टों
Did you follow example exactly as presented in MQL4 docs?
http://docs.mql4.com/objects/objectsetdouble
I think same principles in code apply to Pitchfork as well.
Specifically there is some places where you should check that your MQL4 API call succeeded or Print GetLastError() on error.
And sometimes forgetting to call ChartRedraw() makes you believe that your code is not working even though it's just a repainting problem (like on weekends).
And fourth parameter ("prop_modifier") in your example is always zero (0) so it seems that you are actually modifying level 0 value four times using value 0.5, -0.5, 1.0 and -1.0.
Last value -1.0 should be the effective value.
"prop_modifier":
[in] Modifier of the specified property. It denotes the number of the level in Fibonacci tools and in the graphical object Andrew's pitchfork. The numeration of levels starts from zero.
http://docs.mql4.com/objects/objectsetdouble
I think same principles in code apply to Pitchfork as well.
Specifically there is some places where you should check that your MQL4 API call succeeded or Print GetLastError() on error.
And sometimes forgetting to call ChartRedraw() makes you believe that your code is not working even though it's just a repainting problem (like on weekends).
And fourth parameter ("prop_modifier") in your example is always zero (0) so it seems that you are actually modifying level 0 value four times using value 0.5, -0.5, 1.0 and -1.0.
Last value -1.0 should be the effective value.
"prop_modifier":
[in] Modifier of the specified property. It denotes the number of the level in Fibonacci tools and in the graphical object Andrew's pitchfork. The numeration of levels starts from zero.
Being Bearish or Bullish Makes No Difference
Nov 18, 2014 at 08:12
तबसे मेंबर है Sep 13, 2013
4 पोस्टों
hi,
i tried everything, but won't work
i can draw levels for fibochannel but not for pitchfork.
i tried to copy and paste the whole metaquotes page ( http://docs.mql4.com/constants/objectconstants/enum_object/obj_pitchfork ) but still won't work..
i don't understand..... now i added levels using obj_trend..
i really appreciated your help, thanks anyway 😉
best regards
i tried everything, but won't work
i can draw levels for fibochannel but not for pitchfork.
i tried to copy and paste the whole metaquotes page ( http://docs.mql4.com/constants/objectconstants/enum_object/obj_pitchfork ) but still won't work..
i don't understand..... now i added levels using obj_trend..
i really appreciated your help, thanks anyway 😉
best regards

*व्यवसायिक इस्तेमाल और स्पैम को ब्रदाश नहीं किया जाएगा, और इसका परिणाम खाता को बन्द करना भी हो सकता है.
टिप: किसी चित्र या यूट्यूब या URL को पोस्ट करने से वे अपने आप आपके पोस्ट में आजाएगा!
टिप: @ चिन्ह को टाइप करें उपभोगता के नाम को अपने आप करने के लिए जो इस चर्चा में भाग ले रहा है.