Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 21:54:56 +0000



Post From: question about sc.Index

[2017-01-17 15:11:48]
User103949 - Posts: 78
I have read the document.

Simply my question is when the bar is in 1 tick level. Are the following two set of codes the same?

1. // 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;
}


2.
// 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];
}