This method is extremely useful not only for backtesting, since the [[Order_and_Position_Tracker|Order and Position Tracker ]] has nothing in common with the historical calculation process, but also for live auto trading because you can see the strategy logic printed out in real-time.
Adding the following line under the same conditions right before the line, when generating your buy/sell orders, will help you to understand at what particular bar, when, and at what price your order is triggered in the code: