TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
int ObjectGetShiftByValue ( string  name,
double  value 
)

Calculates and returns bar index (shift related to the current bar) for the given price

Parameters
nameObject name
valuePrice value
Returns
Bar index (shift related to the current bar) for the given price. The bar index is calculated by the first
and second coordinates using a linear equation. Applied to trendlines and similar objects. To get the detailed error
information, one has to call the GetLastError() function