OBJPROP_TIME OBJPROP_PRICE
Cromo: To get the onject price on the current bar, I used Time[0] But it is not working. Is this correct?
- Your code only select a trend line what has the first coordinate at Time[0]. Were they both drawn from bar zero backwards? Otherwise, you will not select them.
- Your code reads one of the two trend line coordinates; has nothing to do what you want.
- Perhaps you should read the manual.
ObjectGetValueByShift - Object Functions - MQL4 Reference
Hello,
I want to read the price from the trend line object.
I just want to get the price (upper and lower line ) on the current bar.
This is my code.
To get the onject price on the current bar, I used Time[0]
But it is not working.
Is this correct?