Hi,
I used timeframe in daily pivoted on point of yesterday close value & added some value in my code, in our India market opening time 9:15 am. The below code pivot points showing 9:30am instead of 9:15am. i don’t know, where i am made mistake in the code.
_SECTION_BEGIN("Pivot");
TimeFrameSet( inDaily );
// assign Daily values to custom variables
indexDailyClose = Ref(Close, -1);
TimeFrameRestore();
// align data back to original interval
PClose = TimeFrameExpand( indexDailyClose, inDaily );
for( i = 1; i < BarCount ; i++ )
{
LastC[i] = PClose[i];
}
Pvt[ 1 ] = LastC[ 1 ];
for( ii = 2; ii < BarCount; ii++ )
{
prev[ ii ] = Pvt[ ii-1 ];
Pvt[ ii ] = round( int((( LastC[ ii ] - prev[ ii ] )* 0.33 + prev[ ii ] ) * 100 )/ 5 ) * 0.05;
}
Filter = LastC;
AddColumn(LastC,"LastC");
Filter = MSF;
AddColumn(MSF,"MSF");
textsize = Param("TextSize",10,6,20,1,0);
GfxSetOverlayMode(0);
GfxSelectFont("Calibri Light",textsize, 700);
GfxSetBkMode(0); // transparent
GfxSetTextColor( colorBlue );
GfxTextOut("Pivot @ " +Pvt, 275, 140);
_SECTION_END();
thanks
Ganesan