Hello everyone, please i would like to know how we get the 2 coordinate prices of a rectangle in MQL5. In MQL4, we have OBJPROP_PRICE1 and OBJPROP_PRICE2 for the 2 prices levels, same for the prices. But in MQL5, there's just OBJPROP_PRICE same for the time. I want to use the GetDouble but don't what precept 'll take
- Object overlapping color problem
- If price touch the shap
- How to get time and price coordinate on a chart?
Bryan Djoufack Nguessong:
Hello everyone, please i would like to know how we get the 2 coordinate prices of a rectangle in MQL5. In MQL4, we have OBJPROP_PRICE1 and OBJPROP_PRICE2 for the 2 prices levels, same for the prices. But in MQL5, there's just OBJPROP_PRICE same for the time. I want to use the GetDouble but don't what precept 'll take
Hello everyone, please i would like to know how we get the 2 coordinate prices of a rectangle in MQL5. In MQL4, we have OBJPROP_PRICE1 and OBJPROP_PRICE2 for the 2 prices levels, same for the prices. But in MQL5, there's just OBJPROP_PRICE same for the time. I want to use the GetDouble but don't what precept 'll take
MQL5 Reference: ObjectGetDouble
double ObjectGetDouble( long chart_id, // chart identifier string name, // object name ENUM_OBJECT_PROPERTY_DOUBLE prop_id, // property identifier int prop_modifier=0 // property modifier, if required );
ENUM_OBJECT_PROPERTY_INTEGER
OBJPROP_TIME | Time coordinate | datetime modifier=number of anchor point |
ENUM_OBJECT_PROPERTY_DOUBLE
OBJPROP_PRICE | Price coordinate | double modifier=number of anchor point |
![Documentation on MQL5: Object Functions / ObjectGetDouble Documentation on MQL5: Object Functions / ObjectGetDouble](https://c.mql5.com/36/40/documentation-on-mql5-object-functions.png)
Documentation on MQL5: Object Functions / ObjectGetDouble
- www.mql5.com
The function returns the value of the corresponding object property. The object property must be of the double type. There are 2 variants of the function. [in] Modifier of the specified property. For the first variant, the default modifier value is equal to 0. Most properties do not require a modifier. It denotes the number of the level in...
Thanks man
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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