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.
for(int k=0;k<ObjectsTotal(0,0, OBJ_TREND);k++)
string name = ObjectName(0, k, 0, OBJ_TREND);
double VALUE= ObjectGetDouble(0, name, OBJPROP_PRICE1);
double time= ObjectGetDouble(0, name, OBJPROP_TIME1);
This is my code.
To get the onject price on the current bar, I used Time
But it is not working.
Is this correct?
solve the issue!
Please enable the necessary setting in your browser, otherwise you will not be able to log in.