Having a problem with an array.
I wish for the last 10 tick values to be captured in an array. This will allow me to then compare and analyse the data.
Everything was fine prior to my entering this code. whats wrong with it?
// Array variables
double[] tickStore;
private int tickCount = 0;
protected override void OnMarketData(MarketDataEventArgs e)
{
tickStore[tickCount] = tickPrice; // place current tick price in array
tickCount = tickCount + 1; // move array pointer
if
(
( tickCount >3 ) // we have at least 3 ticks in Array
)
{
// loop through the array
for( int i = 0; i<tickCount;i++)
{
Print(String.Format("Array" + i + "= " + tickStore[tickCount]));
tickCheck = tickStore[i] - tickStore[i-1];
if( (tickCheck >1) || (tickCheck <-1) ) // difference between adjacent ticks
{


Comment