A Price-Threshold Buy Example in a Visual Trading Workflow
Summary
This visual-strategy example shows a simple automated trading loop for a BitMEX XBTUSD contract. It repeatedly reads the latest ticker and, when the last price is above a fixed threshold, sets the order direction to buy and submits a buy order using the current price and a fixed quantity. If an order identifier is returned, it retrieves the position and logs it. The blocks illustrate contract selection, ticker access, a conditional, order placement, position retrieval, and logging.
The example does not provide an exit rule, sell-side logic, position-state check, or delay between iterations, so its repeated condition could lead to repeated order attempts. No backtest settings or performance evidence are included. It is useful as a basic demonstration of connecting market data to an order action, but it is not a complete trading strategy or a risk-managed system. The fixed threshold and quantity also limit its suitability across different prices, account sizes, and market conditions.
Key ideas
- The workflow selects the XBTUSD contract and repeatedly reads the latest ticker.
- It submits a buy order when the last price exceeds a fixed threshold.
- After a successful order response, it fetches and logs the current position.
- The example provides no exit logic, sell signal, or performance evidence.
- A continuously repeated condition may trigger repeated order attempts without additional safeguards.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.