Introduction
Common Scenarios
Card Description
Operations Card - Liquidate all positions
Operation Card - Place Order
Conditions Card - candlestick conditions
Conditions - Current Time
Conditions Card - positions conditions
Condition Cards - Max Qty to Buy or Sell
How to set price alerts with custom indicators
Condition Cards - Order Book
Operation Card - Roll Position
Operation Card - Reverse Trade
Backtest
1. "Liquidation Card" is implemented through a combination of APIs. It is targeted at not only orders generated in a certain quantitative strategy, but all open positions and all unfilled orders in an account.
2. "Liquidation Card" will trigger a request to cancel orders or liquidate positions, but there's no guarantee that it will be done successfully. Here is how it works:
For liquidating positions only: All positions in the account are liquidated by placing opposite orders on a one-by-one basis.
For cancelling all orders and then liquidating positions: First, all unfilled orders in the account are cancelled, and then all positions in the account are liquidated by placing opposite orders on a one-by-one basis.
3. Order types for liquidation
Market | Product Type | Order Type for Liquidation |
HK | Securities (including stocks, ETFs, warrants, CBBCs, Inline Warrants) | Mkt |
Options | Lmt | |
Futures | Mkt | |
US | Securities (including stocks, ETFs) | Mkt |
Options | Mkt | |
Futures | Mkt | |
HKCC | Securities (including stocks, ETFs) | Lmt |
Singapore | Futures | Lmt |
Japan | Futures | Lmt |
Note: When using a limit order to close a position, the order price will be the 5th price level of opposite orders in the order book. If there are no opposite orders under the top 5 price levels each, that position will not be closed, and the system will continue to close other positions. Suppose you hold stocks of Tencent (HK.00700). When using “Liquidation Card", the price of a sell limit order will be the 5th price level of buy orders in the order book.
Futures trading is not offered by Moomoo Financial Inc. and is not available to US customers. Futures trading involves high risks and is not suitable for all investors. The amount you could lose may be greater than your initial investment.
Losses can happen more quickly with quant and algorithmic trading compared to other forms of trading. Trading in financial markets carries inherent risks, making effective risk management a crucial aspect of quantitative trading systems. These risks encompass various factors that can disrupt the performance of such systems, including market volatility leading to losses.Moreover, quants face additional risks such as capital allocation, technology, and broker-related uncertainties. It's important to note that automated investment strategies do not guarantee profits or protect against losses.The responsiveness of the trading system or app may vary due to market conditions, system performance, and other factors. Account access, real-time data, and trade execution may be affected by factors such as market volatility.
Risk Disclosure This presentation is for informational and educational use only and is not a recommendation or endorsement of any particular investment or investment strategy. Investment information provided in this content is general in nature, strictly for illustrative purposes, and may not be appropriate for all investors. It is provided without respect to individual investors’ financial sophistication, financial situation, investment objectives, investing time horizon, or risk tolerance. You should consider the appropriateness of this information having regard to your relevant personal circumstances before making any investment decisions. Past investment performance does not indicate or guarantee future success. Returns will vary, and all investments carry risks, including loss of principal. Moomoo makes no representation or warranty as to its adequacy, completeness, accuracy or timeliness for any particular purpose of the above content.