Why an Order Was or Was Not Executed: Difference between revisions
From MultiCharts
→Monitoring from Script
No edit summary |
|||
Line 12: | Line 12: | ||
==Monitoring from Script== | ==Monitoring from Script== | ||
This method is extremely | This method is extremely useful not only for backtesting, since Order and Position Tracker has nothing in common with the process of historical calculation, 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, generating your buy/sell orders will help you to understand at what particular bar, when and at what price is your order triggered in code: | Adding the following line under the same conditions right before the line, generating your buy/sell orders will help you to understand at what particular bar, when and at what price is your order triggered in code: | ||
<br> | <br> |