Why Difference in Exploration Result

I had added option chain in the watchlist and run the following code in exploration. Why there is the difference in the output of the followings?
Doubt

//SMI Code
SetForeign( "Nifty", fixup = True, Tradeprices = False );
........
........
AAA = EMA( nStoMom60, nPeriods60 );
BBB = IIf( nStomom60 > nEMA60, 1  , 0 );
AddColumn( BBB, "60 Total final" );
TimeFrameRestore();

You've got holes in your data (unaligned timestamps). Use Tools->Purify Database and/or data padding and alignment in Analysis. There are dozens of posts on data alignment on this forum. Just use search. The answers are already there.

1 Like