Support Board
Date/Time: Sat, 18 May 2024 22:03:49 +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
|