Support Board
Date/Time: Tue, 01 Jul 2025 03:16:31 +0000
Post From: question about sc.Index
[2017-01-16 04:24:54] |
User103949 - Posts: 78 |
Below is a screenshot of the code in one of the example provided by SC. ( studies5.cpp -- BidAndAskPrices study) // Do data processing if ( (sc.Index < sc.ArraySize -1) || sc.IsReplayRunning()) { BidPrices[sc.Index] = sc.BaseData[SC_BID_PRICE][sc.Index]; AskPrices[sc.Index] = sc.BaseData[SC_ASK_PRICE][sc.Index]; } else { BidPrices[sc.Index] = sc.Bid; AskPrices[sc.Index] = sc.Ask; } I have 2 questions. 1. Can sc.Index be greater or equal sc.ArraySize? 2. How does sc.Index behave in real time with autoloop? Does it increase by one each time new bar is added? Date Time Of Last Edit: 2017-01-16 04:25:18
|