Main Indicator properties

The Indicator has the following properties for accessing various data

  • InstrumentInfo - object, which contains the instrument data
    • Instrument - instrument name
    • TickSize - the instrument price tick
  • PlatformSettings - platform settings
    • ValueAreaPercent - % value of the ‘value area’, which is specified in the global settings of the platform
    • DataPath - the path to the folder where the platform stores all the settings. It could be used for saving some service information by the indicator
  • MarketDepthInfo - DOM data
    • CumulativeDomAsks - total volume of all Asks
    • CumulativeDomBids - total volume of all Bids
    • GetMarketDepthSnapshot() - the method, which returns a DOM snapshot at the moment of request
  • ChartInfo- data about the chart
    • ChartType - the chart type
    • TimeFrame - the chart time-frame. If a time-frame has several parameters, they are separated by a slash (/)
    • MouseLocationInfo
      • PriceBelowMouse - the price below the mouse pointer
      • BarBelowMouse - the bar below the mouse pointer
      • LastPosition - the most recent mouse position
      • IsMouseLeave - the flag of the mouse outside the chart
    • KeyboardInfo
      • PressedKey - the key which is pressed at the moment
    • PriceChartContainer - information about the price chart
      • High - the ‘high’ of the chart visible area
      • Low - the ‘low’ of the visible chart area
      • Step - the chart price step (could differ from the TickSize instrument if the Scale is used)
      • PriceLevelsCount - the number of visible price levels
      • PriceRowHeight - the height of each price level
      • BarsWidth - the width of each bar/candle
      • VisibleBarsCount - the number of the visible bars
      • FirstVisibleBarNumber - the sequence number of the first visible bar
      • LastVisibleBarNumber - the sequence number of the most recent visible bar
      • Region - the area of the chart drawing (without consideration of axes)
    • ChartContainer - information about a complete chart area
      • Region - the area of the chart drawing with consideration of the price and time axes.
  • Container - the indicator container
    • Region - the area of the indicator drawing
    • ChartInfo
  • CurrentBar - the current bar number
  • TradingManager- the data which refer to trading
    • Security - instrument
    • Portfolio - portfolio
    • Position - the current position
    • MyTrades - the trades which were executed on the selected account and selected instrument
    • Orders - the orders which were opened on the selected account and selected instrument

This article was helpful for 3 people. Is this article helpful for you?