Plot( C, "Close", ParamColor( "Color", colorDefault ), styleNoTitle | ParamStyle( "Style" ) | GetPriceStyle() );
expandmode = expandFirst;
TF = in15Minute;
TimeFrameSet( TF );
dt = DateTime();
bull = C>O;
TimeFrameRestore();
expanddt = TimeFrameExpand( dt, TF, expandmode );
expandbull = TimeFrameExpand( bull, TF, expandmode );
printf( "`15 Minute candle timeframe: " + DateTimeToStr( SelectedValue( expanddt ) ));
for( i = BarCount-1; i >= BarCount -8 ; i-- )
{ newexpand ="";
newexpand += DateTimeToStr( expanddt[i] );
}
Filter = 1;
//AddColumn( newexpand, "Date", formatDateTime ); //eXPANDED VARIABLE
//AddColumn( expandbull, "bull", 1, colorDefault, colorDefault, 70 ); (EXPANDED vARIABLE?)
AddColumn( Null, "DateTime", 1, colorDefault, colorDefault, 160 );
Plot( C, "Close", ParamColor( "Color", colorDefault ), styleNoTitle | ParamStyle( "Style" ) | GetPriceStyle() );
expandmode = expandfirst;
TF = in15Minute;
TimeFrameSet( TF );
dt = DateTime();
bull = C>O;
TimeFrameRestore();
expanddt = TimeFrameExpand( dt, TF, expandmode );
expandbull = TimeFrameExpand( bull, TF, expandmode );
expandmode = expandfirst;
MF = 3*in15Minute; // MF = inHourly; FOR hourly
TimeFrameSet( MF );
dt1 = DateTime();
bull1 = C>O;
TimeFrameRestore();
mfexpanddt = TimeFrameExpand( dt1, MF, expandmode );
mfexpandbull = TimeFrameExpand( bull1, MF, expandmode );
//printf( "`15 Minute candle timeframe: " + DateTimeToStr( SelectedValue( expanddt ) ));
//Filter = mfexpandbull;
Filter = expandbull OR mfexpandbull;
AddColumn( expanddt, "15DateT", formatDateTime ); //eXPANDED VARIABLE
AddColumn( mfexpanddt, "45DateT", formatDateTime );
//AddColumn( expandbull, "bull", 1, colorDefault, colorDefault, 70 ); (EXPANDED vARIABLE?)
Plot( C, "Close", ParamColor( "Color", colorDefault ), styleNoTitle | ParamStyle( "Style" ) | GetPriceStyle() );
expandmode = expandFirst;
TF = in15Minute;
TimeFrameSet( TF );
dt = DateTime();
bull = C>O;
TimeFrameRestore();
expanddt = TimeFrameExpand( dt, TF, expandmode );
expandbull = TimeFrameExpand( bull, TF, expandmode );
printf( "`15 Minute candle timeframe: " + DateTimeToStr( SelectedValue( expanddt ) ));
for( i = BarCount-1; i >= BarCount -8 ; i-- )
{ newexpand ="";
newexpand += DateTimeToStr( expanddt[i] );
}
Filter = 1;
//AddColumn( newexpand, "Date", formatDateTime ); //eXPANDED VARIABLE
//AddColumn( expandbull, "bull", 1, colorDefault, colorDefault, 70 ); (EXPANDED vARIABLE?)
AddColumn( Null, "DateTime", 1, colorDefault, colorDefault, 160 );

SetBarsRequired( -2, -2 );
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
function tf_ma(e,d)
{
for (i=e; i<d; i++)
{
tf = i * in1Minute;
TimeframeSet(tf);
meme = MA(C,15);
TimeframeRestore();
return TimeFrameExpand(meme,tf,expandPoint);
}
}
m = tf_ma(1,9);
for( b = 0; b < BarCount; b++ )
if(m[b])
PlotText(" " , b, L[ b ], colorRed, colorDefault, -12 );
........
Hope All folks doing good ..
Amazing!!
There's no syntax error, still it shows syntax error..
Code:SetBarsRequired( -2, -2 ); Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); function tf_ma(e,d) { for (i=e; i<d; i++) { tf = i * in1Minute; TimeframeSet(tf); meme = MA(C,15); TimeframeRestore(); return TimeFrameExpand(meme,tf,expandPoint); } } m = tf_ma(1,9); for( b = 0; b < BarCount; b++ ) if(m[b]) PlotText(" " , b, L[ b ], colorRed, colorDefault, -12 );![]()