Support Board
Date/Time: Mon, 10 Mar 2025 07:03:30 +0000
Post From: Reading the Intraday chart data file records from the chart data file
[2022-03-13 23:33:37] |
1+1=10 - Posts: 270 |
If you’re using “sc.Autoloop = 1” then by default the study will be called for every single chart bar. If so, you need to add an if statement such as “if(sc.Index == 0)” or perhaps “if(sc.Index == sc.ArraySize - 1)” depending on whether you only need to read the intraday file records when the study is placed on the chart or if you need to read the record every time new market data comes in. If you’re unsure what I mean please consider pasting your code as it will be easier for the forum members to help you troubleshoot. |