How to Get Price Coordinate of Horizontal Line?
- function ObjectGetTimeByValue throws error 4204 for horizontal OBJ_TREND line
- Beginner's questions in MQL5. Professionals don't pass by.
- Report the price of a horizontal line
Could you say me which is the way to get this orders you have found in the program, once I start a session, step by step.
- Search for it,
- learn to code it. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours.
- Beg at Coding help - MQL4 and MetaTrader 4 - MQL4 programming forum or Need help with coding - General - MQL5 programming forum or Free MQL4 To MQL5 Converter - General - MQL5 programming forum or Requests & Ideas (MQL5 only!),
- or pay (Freelance) someone to code it.
No free help
urgent help.
I come across the same problem and it works not for me in .mql4 after dragging.
ObjectGetDouble(0,name,OBJPROP_PRICE,0); ObjectGetDouble(0,name,OBJPROP_PRICE1,0); ObjectGetDouble(0,name,OBJPROP_PRICE2,0);
None of these calls provide the correct price. OBJ_PRICE and OBJ_PRICE1 provide the initial price at creation, but not the price when line has been dragged.
Is it possible to query price/y coordinate when line already has been dragged ?
Thank you community
I come across the same problem and it works not for me in .mql4 after dragging.
None of these calls provide the correct price. OBJ_PRICE and OBJ_PRICE1 provide the initial price at creation, but not the price when line has been dragged.
ChartRedraw(0); ObjectGetDouble(0,name,OBJPROP_PRICE,0);