API Functions

IQScript API functions are divided into the following groups:

  • Broker - create new orders and modify or cancel existing orders
  • Chart - access charts, change their settings and add elements to them
  • Symbol - access the portfolio's symbols
  • Position - access the positions in the Positions table
  • Trade - access trades in the Trades table
  • Order - access the orders in the Orders table
  • DataSeries - access and control data series
  • Bar - read bar values from data series
  • Tick - read tick values from data series
  • MarketDepth - access Level 2 market data
  • Fundamental - access fundamental figures
  • Session - access Exchange sessions
  • Profile - access profile bars
  • Alert - trigger and access alerts
  • BarBuilder - build custom bar types
  • Drawing - paint drawings and access Drawing script instances
  • Indicator -  build indicators and access Indicator script instances
  • Pattern - detect patterns and access pattern script instances
  • Signal - access Signal script instances
  • Discretionary - control the execution of Discretionary Strategy scripts
  • Strategy -  access portfolio strategy figures
  • StrategyHistory - access historical portfolio strategy figures as recorded by the daily portfolio snapshots (taken at the portfolio EOD time)
  • Optimization - control the execution of Optimization scripts
  • Stats - calculate performance statistics
  • Tax - calculate and deduct capital gains taxes
  • JournalLog - access the Journal log
  • NewsLog -  access the News log
  • RSSLog - access the RSS log
  • DataConnection - access the Data Connections log
  • BrokerConnection - access the Broker Connections log
  • Output - write to the Output window for debugging purposes
  • DateTime - manipulate date/time variables
  • Math - perform basic mathematical calculations