TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
bool ObjectCreate ( long  chart_id,
string  name,
int  type,
int  sub_window,
DateTime  time1,
double  price1,
DateTime  time2,
double  price2,
DateTime  time3,
double  price3 
)

Creates an object with the specified name, type, and the initial coordinates in the specified chart subwindow

Parameters
chart_idChart identifier
nameName of the object. The name must be unique within a chart, including its subwindows
typeObject type. The value can be one of the following values:
OBJ_VLINEVertical Line
OBJ_HLINEHorizontal Line
OBJ_TRENDTrend Line
OBJ_TRENDBYANGLETrend Line By Angle
OBJ_CYCLESCycle Lines
OBJ_CHANNELEquidistant Channel
OBJ_STDDEVCHANNELStandard Deviation Channel
OBJ_REGRESSIONLinear Regression Channel
OBJ_PITCHFORKAndrewsÂ’ Pitchfork
OBJ_GANNLINEGann Line
OBJ_GANNFAN Gann Fan
OBJ_GANNGRIDGann Grid
OBJ_FIBOFibonacci Retracement
OBJ_FIBOTIMESFibonacci Time Zones
OBJ_FIBOFANFibonacci Fan
OBJ_FIBOARCFibonacci Arcs
OBJ_FIBOCHANNELFibonacci Channel
OBJ_EXPANSIONFibonacci Expansion
OBJ_RECTANGLERectangle
OBJ_TRIANGLETriangle
OBJ_ELLIPSEEllipse
OBJ_ARROW_THUMB_UPThumbs Up
OBJ_ARROW_THUMB_DOWNThumbs Down
OBJ_ARROW_UPArrow Up
OBJ_ARROW_DOWNArrow Down
OBJ_ARROW_STOPStop Sign
OBJ_ARROW_CHECKCheck Sign
OBJ_ARROW_LEFT_PRICELeft Price Label
OBJ_ARROW_RIGHT_PRICERight Price Label
OBJ_ARROW_BUYBuy Sign
OBJ_ARROW_SELLSell Sign
OBJ_ARROWArrow
OBJ_TEXTText
OBJ_LABELLabel
OBJ_BUTTONButton
OBJ_BITMAPBitmap
OBJ_BITMAP_LABELBitmap Label
OBJ_EDITEdit
OBJ_EVENTThe "Event" object corresponding to an event in the economic calendar
OBJ_RECTANGLE_LABEL The "Rectangle label" object for creating and designing the custom graphical interface.
sub_windowNumber of the chart subwindow. 0 means the main chart window. The specified subwindow must exist
(window index must be greater or equal to 0 and less than WindowsTotal()), otherwise the function returns false
time1The time coordinate of the first anchor point
price1The price coordinate of the first anchor point
time2The time coordinate of the second anchor point
price2The price coordinate of the second anchor point
time3The time coordinate of the third anchor point
price3The price coordinate of the third anchor point
Returns
Returns true or false depending on whether the object is created or not. To read more about the error call GetLastError().
If the object has been created already, the function tries to change its coordinates.