Support Board
Date/Time: Wed, 03 Sep 2025 09:10:55 +0000
Post From: How to set up data and backtest a study
[2025-08-03 02:25:30] |
ForgivingComputers.com - Posts: 1112 |
What is the function to print from a study to debug it and where can I find the resulting prints in sierra charts?
Not sure I understand your question. Coming from a newbie to Sierra Chart, you are learning how it works. There is a lot to learn, so take your time. Studies that do Auto-Trading write to the Trade Activity Log. Are you a developer? If you create custom studies, you can add text messages to the Windows Message Log from your study at any place in the code. Adding a Spreadsheet study to the chart will let you see every bar's data, (OHLC,etc.) and all the values from the study subgraphs. The Spreadsheets are "Excel-Like" with some big differences. The latest bar is in Row 3 and it gets pushed down when a new bar is added to the chart. Many cells have dedicated purposes. A spreadsheet trading study can enter and exit trades based on your formulas. Just adding a Spreadsheet study can be helpful in debugging, and you can add your own formulas to check the math. Just remember that when you add formulas in Row 3, they are automatically copied down, increasing any relative row number references. For example, if you enter into cell K3 the formula =AA3, then K4 will be filled with =AA4. You can do a lot with the spreadsheets, including copying the values and formulas and pasting into Excel. Most of the time if you want to print text and other data, you need to Export or copy and paste into some other app like Notepad++ for text, and Excel for Data. Printing data is not something Sierra Chart supports well, but you can do File>>Print on the actual charts. |