ObjectSetInteger(0,name,OBJPROP_TIME,0,starts); ObjectSetInteger(0,name,OBJPROP_TIME,1,ends); ObjectSetDouble(0,name,OBJPROP_PRICE,0,top); ObjectSetDouble(0,name,OBJPROP_PRICE,1,bottom);
Perhaps you should read the manual.
Your code |
Documentation |
---|---|
ObjectSetDouble( 0, name, OBJPROP_PRICE, top, 0 ); |
bool ObjectSetDouble( long chart_id, // chart identifier string name, // object name ENUM_OBJECT_PROPERTY_DOUBLE prop_id, // property int prop_modifier, // modifier double prop_value // value ); |
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I converted the following code that I was using in mql4 to mql5 but it doesn't show the rectangles on the chart. The mql4 code is working perfectly. I get a warning " possible loss of data due to type conversion" on the set integer/double lines for OBJPROP_TIME and OBJPROP_PRICE.