TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
bool ChartSetInteger ( long  chart_id,
int  prop_id,
int  sub_window,
long  value 
)

Sets the value of a corresponding property of the specified chart. Chart property must be of datetime, int or bool type.

Parameters
chart_idChart ID. 0 means the current chart
prop_idChart property ID. This value can be one of the following values:
CHART_MOUSE_SCROLLScrolling the chart horizontally using the left mouse button. Vertical scrolling is also available if the value of any following properties is set to true: CHART_SCALEFIX, CHART_SCALEFIX_11 or CHART_SCALE_PT_PER_BARbool
CHART_EVENT_MOUSE_MOVESend notifications of mouse move and mouse click events (CHARTEVENT_MOUSE_MOVE) to all scripts on a chartbool
CHART_EVENT_OBJECT_CREATESend a notification of an event of new object creation (CHARTEVENT_OBJECT_CREATE) to all scripts on a chartbool
CHART_EVENT_OBJECT_DELETESend a notification of an event of object deletion (CHARTEVENT_OBJECT_DELETE) to all scripts on a chartbool
CHART_MODEChart type (candlesticks, bars or line)CHART_BARS, CHART_CANDLES, CHART_LINE
CHART_SHIFTMode of price chart indent from the right borderbool
CHART_AUTOSCROLLMode of automatic moving to the right border of the chartbool
CHART_SCALEScaleint from 0 to 5
CHART_SCALEFIXFixed scale modebool
CHART_SCALEFIX_11Scale 1:1 modebool
CHART_SCALE_PT_PER_BARScale to be specified in points per barbool
CHART_SHOW_BID_LINEDisplay Bid values as a horizontal line in a chartbool
CHART_SHOW_ASK_LINEDisplay Ask values as a horizontal line in a chartbool
CHART_SHOW_LAST_LINEDisplay Last values as a horizontal line in a chartbool
CHART_SHOW_PERIOD_SEPDisplay vertical separators between adjacent periodsbool
CHART_SHOW_GRIDDisplay grid in the chartbool
CHART_SHOW_VOLUMESDisplay volume in the chartCHART_VOLUME_HIDE, CHART_VOLUME_TICK
CHART_SHOW_OBJECT_DESCRPop-up descriptions of graphical objectsbool
CHART_COLOR_BACKGROUNDChart background colorcolor
CHART_COLOR_FOREGROUNDColor of axes, scales and OHLC linecolor
CHART_COLOR_GRIDGrid colorcolor
CHART_COLOR_VOLUMEColor of volumes and order opening levelscolor
CHART_COLOR_CHART_UPColor for the up bar, shadows and body borders of bull candlestickscolor
CHART_COLOR_CHART_DOWNColor for the down bar, shadows and body borders of bear candlestickscolor
CHART_COLOR_CHART_LINELine chart color and color of "Doji" Japanese candlestickscolor
CHART_COLOR_CANDLE_BULLBody color of a bull candlestick color
CHART_COLOR_CANDLE_BEARBody color of a bear candlestick color
CHART_COLOR_BIDBid price level colorcolor
CHART_COLOR_ASKAsk price level colorcolor
CHART_COLOR_LASTLine color of the last executed deal price (Last)color
CHART_COLOR_STOP_LEVELColor of stop order levels (Stop Loss and Take Profit)</tdcolor
CHART_SHOW_DATE_SCALEShowing the time scale on a chartbool
CHART_SHOW_PRICE_SCALEShowing the price scale on a chartbool
sub_windowNumber of the chart subwindow. 0 denotes the main chart subwindow
long_varNew property value
Returns
True if specified property is available and its value has been successfully set, otherwise returns false