My Language Position Change Notifications for Trading Strategies
Summary
This document shows how to add a position-change notification to a My Language trading strategy. The example combines a simple breakout system, using a close above a recent high to enter long and a close below a recent low to enter short, with a small script section that tracks the net position.
The notification logic stores the prior position value, compares it with the current difference between long and short holdings, and logs a message when that value changes. The message includes the instrument and updated position, enabling the platform’s app or WeChat notification flow. The example illustrates monitoring strategy state rather than evaluating trading performance. It provides no backtest results or safeguards for notification delivery, repeated updates, or platform-specific behavior, so users would need to verify how position values and alerts work in their own setup.
Key ideas
- The example pairs a basic price breakout strategy with a position-change monitor.
- Net position is calculated as long holdings minus short holdings.
- A stored prior position allows the script to detect a change and log the instrument and new value.
- The notification technique concerns operational monitoring and supplies no evidence about strategy profitability.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.