Skip to content
All library documents

Using Chinese Parameter Names in Python Strategy Settings

Article vn.py community

Summary

This brief forum exchange discusses showing a strategy parameter’s Chinese name in a settings interface. One suggestion is to name the parameter in Chinese directly, so the interface displays that name. The original poster worries that the strategy code would then be unable to refer to the parameter when comparing prices. A reply explains that Python 3 permits Chinese characters in identifiers, so the parameter can be accessed using its Chinese name as an attribute.

The exchange offers a narrow implementation tip rather than a trading method. It gives no code example beyond a simple comparison, and does not discuss naming conventions, compatibility, or how the surrounding trading framework handles parameter metadata. Its advice is therefore limited to Python syntax: whether the framework accepts such names in its settings and configuration remains unaddressed.

Key ideas

  • Python 3 allows Chinese characters in identifiers.
  • Using a Chinese parameter name can make that name appear in a strategy settings interface.
  • A parameter named in Chinese can be referenced as an object attribute in Python.
  • The discussion does not explain whether every trading framework supports this naming approach.

Tags

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