p = ObjectGet(name, OBJPROP_PRICE);Property OBJPRICE_PRICE is defined only for ObjectGetDouble(). Perhaps you should reread the manual.
Object Properties - Objects Constants - Standard Constants, Enumerations and Structures - MQL4 Reference
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
Hi
This code failed to print out the price where the horizontal line is drawn, instead it is reporting 0. Any idea how to fix it? Thanks