How to view variable values and output

When we backtest on blueshit need to see step-by-step output to understand how algorithm is running and view values of various variables. how we can see the same. Output window is empty, I can see only transactions and other details. Tried running following code



record(SBIN=data.current(context.asset, "price"),

short_ema=short_ema[-1],

long_ema=long_ema[-1],

buy=buy,

sell=sell)

where this record is maintained. If I want to plot some values where it will be visible.

Hi Vivek, unfortuantely Blueshift does not currently support the record API function. We are overhauling the it and will add a more complete set of APIs, including record in near future. In the meantime, you can use a periodic "print" to print the contents. You can see the output of the print function in the Output tab.