_SECTION_BEGIN("HighVol");
SetChartOptions(0,chartShowArrows|chartShowDates|chartWrapTitle);
SetChartBkColor(ParamColor("Background", colorLightGrey)) ;
useforeign = ParamToggle("Set Foreign", "No|Yes", 0) ;
List = GetCategorySymbols(categoryMarket, 0) ;
forscript = ParamList("Scrip", List, 0) ;
if (useforeign)
SetForeign(forscript);
settf = ParamToggle("Set TF", "No|Yes", 0) ;
tf = Param("TF", 5, 1, 100000, 1) ;
if (settf)
{
SetChartOptions(3,chartShowDates);
TimeFrameSet(tf*in1Minute) ;
}
Layer = Param("Layer", 0, -5, 5, 1) ;
if (settf)
tz = NumToStr(tf, 8.0) +"-minute";
else
tz = NumToStr(Interval()/in1Minute, 8.0) +"-minute";
//_N(Title = StrFormat(Name() + " " +tz + " " + NumToStr(ddt, formatDateTime) + " Range %g {{VALUES}}", SelectedValue( dh-dl) ));
_N(Title = StrFormat(Name()+tz+ NumToStr(DateTime(), formatDateTime)+ EncodeColor( colorGreen ) + " Open %g," + EncodeColor( colorBlue ) + " Hi %g, " + EncodeColor( colorRed ) + " Lo %g, " + EncodeColor( colorBlack ) + " Close %g (%.1f%%){{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", colorBlack, styleNoTitle | styleCandle,0,0,0,Layer );
ToolTip = "Open = " + O + "\nHigh = " + H + "\nLow = " + L + "\nClose = " + C ;
if (settf)
{
Daych = Day() != Ref(Day(), -1) ;
Plot(IIf(Daych, 100, 0), "", colorBlack, styleHistogram|styleNoLabel|styleOwnScale, 0, 100, 0, -5) ;
}
//Peaking Volumes
HiVolume = IIf(V > (2 * MA(V,10)), True, False);
PlotShapes(shapeSmallCircle * HiVolume, IIf(C > O, colorBlack, colorWhite), 0, (O+C)/2, 0);
//TimeFrameRestore()
_SECTION_END();
_SECTION_BEGIN("HighVol");
SetChartOptions(0,chartShowArrows|chartShowDates|chartWrapTitle);
SetChartBkColor(ParamColor("Background", colorLightGrey)) ;
useforeign = ParamToggle("Set Foreign", "No|Yes", 0) ;
List = GetCategorySymbols(categoryMarket, 0) ;
forscript = ParamList("Scrip", List, 0) ;
if (useforeign)
SetForeign(forscript);
settf = ParamToggle("Set TF", "No|Yes", 0) ;
tf = Param("TF", 5, 1, 100000, 1) ;
if (settf)
{
SetChartOptions(3,chartShowDates);
TimeFrameSet(tf*in1Minute) ;
}
Layer = Param("Layer", 0, -5, 5, 1) ;
if (settf)
tz = NumToStr(tf, 8.0) +"-minute";
else
tz = NumToStr(Interval()/in1Minute, 8.0) +"-minute";
//_N(Title = StrFormat(Name() + " " +tz + " " + NumToStr(ddt, formatDateTime) + " Range %g {{VALUES}}", SelectedValue( dh-dl) ));
_N(Title = StrFormat(Name()+tz+ NumToStr(DateTime(), formatDateTime)+ EncodeColor( colorGreen ) + " Open %g," + EncodeColor( colorBlue ) + " Hi %g, " + EncodeColor( colorRed ) + " Lo %g, " + EncodeColor( colorBlack ) + " Close %g (%.1f%%){{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", colorBlack, styleNoTitle | styleCandle,0,0,0,Layer );
ToolTip = "Open = " + O + "\nHigh = " + H + "\nLow = " + L + "\nClose = " + C ;
if (settf)
{
Daych = Day() != Ref(Day(), -1) ;
Plot(IIf(Daych, 100, 0), "", colorBlack, styleHistogram|styleNoLabel|styleOwnScale, 0, 100, 0, -5) ;
}
//Peaking Volumes
HiVolume = IIf(V > (2 * MA(V,10)), True, False);
PlotShapes(shapeSmallCircle * HiVolume, IIf(C > O, colorBlack, colorWhite), 0, (O+C)/2, 0);
//TimeFrameRestore()
_SECTION_END();
_SECTION_BEGIN("HighVol");
SetChartOptions(0,chartShowArrows|chartShowDates|chartWrapTitle);
SetChartBkColor(ParamColor("Background", colorLightGrey)) ;
useforeign = ParamToggle("Set Foreign", "No|Yes", 0) ;
List = GetCategorySymbols(categoryMarket, 0) ;
forscript = ParamList("Scrip", List, 0) ;
if (useforeign)
SetForeign(forscript);
settf = ParamToggle("Set TF", "No|Yes", 0) ;
tf = Param("TF", 5, 1, 100000, 1) ;
if (settf)
{
SetChartOptions(3,chartShowDates);
TimeFrameSet(tf*in1Minute) ;
}
Layer = Param("Layer", 0, -5, 5, 1) ;
if (settf)
tz = NumToStr(tf, 8.0) +"-minute";
else
tz = NumToStr(Interval()/in1Minute, 8.0) +"-minute";
//_N(Title = StrFormat(Name() + " " +tz + " " + NumToStr(ddt, formatDateTime) + " Range %g {{VALUES}}", SelectedValue( dh-dl) ));
_N(Title = StrFormat(Name()+tz+ NumToStr(DateTime(), formatDateTime)+ EncodeColor( colorGreen ) + " Open %g," + EncodeColor( colorBlue ) + " Hi %g, " + EncodeColor( colorRed ) + " Lo %g, " + EncodeColor( colorBlack ) + " Close %g (%.1f%%){{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", colorBlack, styleNoTitle | styleCandle,0,0,0,Layer );
ToolTip = "Open = " + O + "\nHigh = " + H + "\nLow = " + L + "\nClose = " + C ;
if (settf)
{
Daych = Day() != Ref(Day(), -1) ;
Plot(IIf(Daych, 100, 0), "", colorBlack, styleHistogram|styleNoLabel|styleOwnScale, 0, 100, 0, -5) ;
}
//Peaking Volumes
HiVolume = IIf(V > (2 * MA(V,10)), True, False);
PlotShapes(shapeSmallCircle * HiVolume, IIf(C > O, colorBlack, colorWhite), 0, (O+C)/2, 0);
//TimeFrameRestore()
_SECTION_END();
//% chg in mtf
TimeFrameSet(inDaily);
diffd = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diffd1=TimeFrameExpand(diffd,inDaily);
TimeFrameSet(inHourly);
diffh = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diffh1=TimeFrameExpand(diffh,inHourly);
TimeFrameSet(in15Minute*2);
diff30 = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diff30a=TimeFrameExpand(diff30,in15Minute*2);
TimeFrameSet(in15Minute);
diff15 = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diff15a=TimeFrameExpand(diff15,in15Minute);
TimeFrameSet(in5Minute);
diff5 = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diff5a=TimeFrameExpand(diff5,in5Minute);
Plot(C,"",47,128);
Filter=1;
AddColumn(diffd1,"daily chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;
AddColumn(diffh1,"60m chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;
AddColumn(diff30a,"30m chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;
AddColumn(diff15a,"15 chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;
AddColumn(diff5a,"5m chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;