Displaying Variables in a Strategy Status Bar with LogStatus
Summary
The document demonstrates using a strategy platform’s LogStatus function to display information in a status area. Its example passes several Python values to the function: a number, a string, a list, a tuple, and a dictionary. The call also includes text with newline characters, illustrating how to show multiple lines in the displayed status message.
This is a small interface and debugging technique rather than a trading method. It shows that the status output can combine explanatory text with different basic data structures, which may help a developer inspect values while a strategy runs. The example does not explain formatting rules, output limits, update frequency, or error handling, and it gives no trading analysis or performance evidence. Its usefulness is therefore practical and narrow: it illustrates how to expose runtime state for monitoring, while leaving platform-specific behavior and more complex objects unspecified.
Key ideas
- LogStatus can send text and variable values to a strategy’s status display.
- The example includes numeric, string, list, tuple, and dictionary values.
- Newline characters can structure the output across multiple lines.
- The document is a basic interface example and does not describe a trading strategy.
- Formatting limits and runtime behavior are not covered.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.