//===========================
/*
this is NOT True few days ago Tomasz explain how to put new buttons through customize/tools ...
but any way with this formula below that uses TimeFrameSet without to use restore, you can drag&drop any other AfL AND "Bingo"
try it...
you can have 2,3,..6 chart in the same window with different time frames
Panos
*/
/* Plot different TimeFrames in the same window */
SetChartBkGradientFill(
Period= ParamList( "Base", "Monthly|Weekly|Daily|8Hours|
function xVolume() {
Vol= Plot(V, "Volume2",colorWhite, styleHistogram|styleOwnScale);
}
if(Period== "Monthly"){
TimeFrameSet(inMonthly);
PlotOHLC(Open, High, Low, Close, "\nMonthly Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "Weekly"){
TimeFrameSet(inWeekly);
PlotOHLC(Open, High, Low, Close, "\nweekly Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "Daily"){
TimeFrameSet(inDaily);
PlotOHLC(Open, High, Low, Close, "\nDaily Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "8Hours"){
TimeFrameSet(inHourly *8);
PlotOHLC(Open, High, Low, Close, "\n8 Hours Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "4Hours"){
TimeFrameSet(inHourly *4);
PlotOHLC(Open, High, Low, Close, "\n4 Hours Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "2Hours"){
TimeFrameSet(inHourly *2);
PlotOHLC(Open, High, Low, Close, "\n2 Hours Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "Hourly"){
TimeFrameSet(inHourly);
PlotOHLC(Open, High, Low, Close, "\nHourly Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "30Minute"){
TimeFrameSet(in15Minute *2);
PlotOHLC(Open, High, Low, Close, "\n30 Minute Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "20Minute"){
TimeFrameSet(in5Minute *4);
PlotOHLC(Open, High, Low, Close, "\n20 Minute Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "15Minute"){
TimeFrameSet(in5Minute *3);
PlotOHLC(Open, High, Low, Close, "\n15Minute Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "10Minute"){
TimeFrameSet(in5Minute *2);
PlotOHLC(Open, High, Low, Close, "\n10 Minute Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "5Minute"){
TimeFrameSet(in5Minute);
PlotOHLC(Open, High, Low, Close, "\n5Minute Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "3Minute"){
TimeFrameSet(in1Minute *3);
PlotOHLC(Open, High, Low, Close, "\n3Minute Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "1Minute"){
TimeFrameSet(in1Minute);
PlotOHLC(Open, High, Low, Close, "\n1Minute Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
//==================
Jangan begitu saja percaya... selalu always recek dan percaya dengan TA dan chart Anda.
Insya Allah bermanfaat.
Eco Syariah