Introduction
Common Scenarios
How to build a strategy as a newbie
How to Use Global Variables
How to recover the original strategies
How to handle exceptions in strategy running
How to identify the problems in a strategy
How to Set Alerts By Custom Indicators
Running Order of Conditions Cards & Operations Cards
How to Determine Buying Power
How to use the trigger symbol
How to Set Trigger Conditions to Run a Strategy
How to Open and Close Positions
How to avoid repeated opening of positions
How to trade options with Algo
Card Description
Backtest
Due to certain differences between a securities account and a futures account, some Conditions Cards may not apply to both a security strategy and a futures strategy. Therefore, when creating these two types of strategies, different Condition Cards need to be used to implement the same functionality.
● Security strategy
In the case of a securities strategy, you can determine the maximum number of shares you can buy to open a position by directly using the "Buyable on Margin" card.
● Futures strategy
In the case of a futures strategy, you need to calculate the maximum number of shares you can buy to open a position, namely, floor (maximum buying power/initial margin per contract to open a long position):
It is the same as the "Sellable". You need to calculate the maximum number of shares you can sell to open a short position, namely, floor (maximum buying power/initial margin per contract to open a short position).