The HFS object is like a Swiss Army knife for managing trading strategies. It helps you work with market data, indicators, positions, and orders. This guide breaks down its features into easy-to-understand sections so you can use it effectively, even if you’re not a coder.
These tools help you work with market data, like candles (price charts) and trades.
AddCandleData): Add new candle data to your strategy.GetCandle): Retrieve details about one candle.GetCandles): Access all the candle data you’ve collected.GetNumCandles): Check how many candles are available.AddTradeData): Add new trade data to your strategy.GetTrade): Retrieve details about one trade.GetTrades): Access all the trade data you’ve collected.GetNumTrades): Check how many trades are available.GetLastPrice): Find the most recent price of the asset you’re trading.Indicators are tools that help you analyze the market. These methods let you add, update, and use indicators.