IndicatorContext
Last updated
Was this helpful?
Last updated
Was this helpful?
IndicatorContext is the object passed to 's when retrieving the indicator result or chart data. The IndicatorContext contains details on the bot-configuration, current and historical price info and references to the API-objects.
Amount (in primary currency) the bot is configured to trade with.
Name of the exchange platform the bot is trading on. This can be used as input for the IndicatorAPI methods.
Currency code of the primary currency (for example "BTC").
Currency code of the secondary currency (for example "USD").
Current bot position (Bought or Sold).
The current price of the currency pair on the configured platform. Contains info on Bid, Ask, Volume, Open, Close and a timestamp.
Gives access to logging-features.
Gives access to historical price info on all supported currency pair and platforms.
Contains arrays of doubles with historical price info (Asks, Bids, High, Low, Volume). These arrays can directly be used as input for the functions. The maximum size of the array is defined by the property