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 use the trigger symbol
How to Set Trigger Conditions to Run a Strategy
Running Order of Conditions Cards & Operations Cards
How to Determine Buying Power
How to Open and Close Positions
How to avoid repeated opening of positions
How to set price alerts with custom indicators
How to trade options with Algo
Catch exceptions to improve your strategies
Card Description
Backtest
Trigger conditions are essential for running strategies during backtesting and live trading. The following are some of the trigger conditions provided in Algo trading:
If you select "Run once for every 1h candle," the strategy will start at the beginning of each hour's candle instead of its end. This means the strategy will always run at the start of the trading day, coinciding with the first 1-hour candle. But it won't run at the end of the trading day. Please note that at the beginning of each candle, it's still incomplete, so only one price is available. Thus, the highest, lowest, opening, and closing prices of the latest candle will all equal the opening price.
A tick shows the details of a trade.
By selecting this option, the strategy will run once for every tick.
The frequency of the trigger depends on the underlying security's trading activity. If the security is highly active, the strategy will run more frequently. This trigger condition is ideal for real-time monitoring of a specific security to avoid missing any quotes.
Note: The tick data in backtesting is simulated based on 1-minute candles (with four trades per minute) and not actual past tick data.
If you set it to run once every 2 seconds, for example, the strategy will execute every 2 seconds, regardless of the underlying security's trading status.
If you set it to run at a specific time, such as 15:50:00 ET, the strategy will run once daily at that specified time, regardless of the underlying security's trading status. This trigger condition is typically used for scenarios like "performing operations before market close each day" or "rebalancing portfolio each day".