Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 14:08:08 +0000



Post From: Challenging study

[2014-07-22 09:45:51]
Zosimus - Posts: 345
The above link posted by @CrazyBears helped me a lot when I studies this subject. Thanks to @CrazyBears and to @Nicolas11 from BMT.

Here is an example of a loop that will run through the 20 DOM levels and populate the prices and the Bid/Ask volumes into SCFloatArrays.

SCFloatArrayRef DomVols = sc.Subgraph[0].Arrays[0];
SCFloatArrayRef DomPrice = sc.Subgraph[0].Arrays[1];

for( int d = 0 ; d < 10 ; d++ ){
DomVols[d] = (float) sc.SymbolData->BidDOM[d].Volume;  
DomVols[10+d] = (float) sc.SymbolData->AskDOM[d].Volume;
DomPrice[d] = (float)sc.SymbolData->BidDOM[d].Price;  
DomPrice[10+d] = (float)sc.SymbolData->AskDOM[d].Price;
}