Skip to content
All library documents

Pushing My-Language Strategy Position Changes to Mobile and WeChat

Article FMZ digest · Author: 发明者量化-小小梦

Summary

This tutorial shows how to add position-change notifications to a strategy written in FMZ My Language. Its example trading system uses Williams %R and an exponential moving average to generate long and short entry signals. The central technique uses the language’s JavaScript enhancement layer to access My-Language variables, subtract short volume from long volume, compare the resulting net position with a stored prior value, and log a notification when it changes. The platform can then forward that log to its mobile app and WeChat.

The article includes a live demonstration using a cryptocurrency spot market and says the approach also applies to futures. It explains the role of the scope object and the function that reads My-Language locals, and presents the notification block as reusable across strategies. The example shows an integration method, not evidence of trading performance. Its position calculation reflects the specific long and short volume functions described, so users must ensure that the chosen fields match their account and instrument semantics. Delivery also depends on the platform’s logging and notification services.

Key ideas

  • The example trading signals combine Williams %R with an exponential moving average.
  • A JavaScript enhancement block can read My-Language variables through the scope interface.
  • Subtracting short volume from long volume provides the example’s net position measure.
  • Store the previous position and issue a log notification only when the measured position changes.
  • The article demonstrates notification delivery but does not evaluate strategy returns or alert reliability.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.