Contents

Live Trading

Runtime Statistics

Runtime Statistics

Runtime Statistics

Runtime statistics are custom defined banner statistics displayed across the top of your live algorithm.

You can add your own runtime statistics using the SetRuntimeStatistic(string name, string value); method. In the image above, the user displays the current value of BTC: SetRuntimeStatistic("BTC", data["BTC"].Close);

// User displays the current value of BTC
SetRuntimeStatistic("BTC", data["BTC"].Close);
# User displays the current value of BTC
btc = self.Securities["BTC"].Symbol
self.SetRuntimeStatistic("BTC", data[btc].Close)

You can also see our Tutorials and Videos. You can also get in touch with us via Chat.

Did you find this page helpful?

Contribute to the documentation: