ObjectGetDouble Check return value

Demosfen  

Hi everyone,


how can I properly check if the following code returns correct price value

ObjectGetDouble(ChartID(),"Line",OBJPROP_PRICE,0);

other than checking if it is bigger 0?


Thanks!

William Roeder  
Only those functions that return a value (e.g. iClose, MarketInfo, etc.) must you call ResetLastError before in order to check after.
Reason: