//variable initialization
......
......
TimeFrameSet(inHourly);
//start = NullCount( Close ); //needed???????????
BarToLoop = IIf(BarCount>200,BarCount-200,1);
for ( i = BarToLoop; i < BarCount; i++ )
{
......
......
}
Lplot = LineArray(.....);
TimeFrameRestore();
Plot(TimeFrameExpand(Lplot,inHourly),...........);
Some 30 shares in database(of 1min interval)....
Code work fine on Hourly chart....
When change to other TimeFrame says 30min or 15 min or ... everything good...
but except 3 / 4 chart whose database less than one and a half month... give bizarre result.
What the reason for such strange result cant able to figure out ...
If using timeframe functions then initial bars (bars at start of array) are filled with Null due to compression. So you need to skip those Null occurrences in your loop.