Multiple Time Frames in Single Sheet

Gaur_Krishna

Well-Known Member
#1
Dear Friends,

Trading in line with higher TF has its own advantages. The detailed procedure is given by Alexander Elder by his famous Triple Screen Method. Its easy then to have multiple TFs in single screen especially in Amibroker.

Starting a new thread for " Multiple Time Frames in Single Sheet " :thumb:

Looking forward a step-by-step procedure for same ......
 

Gaur_Krishna

Well-Known Member
#2
I am attaching two charts as below. This is what I am exactly looking for:

The simplest method is using just timeframe functions.
The nicer method is using timeframe functions and GFX functions like in this picture.





So yes, there are multiple ways to display different time frames in the same sheet ...

Regards,
Gaur Krishna
 
#3
HERE SOME CHARTS IF HELPS:


1) 5 min-5 min
Code:
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));


Period= "5Minute";
if(Period=="5Minute"){
	TimeFrameSet(in5Minute);
	PlotOHLC(Open, High, Low, Close, "5Minute Price Chart", IIf(C>Ref(C,-1),34,IIf(C<Ref(C,-1),32,42)),64 | styleOwnScale);
}
2) 5 min-15 min
Code:
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));


Period= "5Minute";
if(Period=="5Minute"){
	TimeFrameSet(in15Minute);
	PlotOHLC(Open, High, Low, Close, "15Minute Price Chart", IIf(C>Ref(C,-1),34,IIf(C<Ref(C,-1),32,42)),64 | styleOwnScale);
}
3) 5 min-30 min
Code:
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));


Period= "5Minute";
if(Period=="5Minute"){
TimeFrameSet(in15Minute *2);
PlotOHLC(Open, High, Low, Close, "30Minute Price Chart", IIf(C>Ref(C,-1),34,IIf(C<Ref(C,-1),32,42)),64 | styleOwnScale);
}
4) 5 min-hourly

Code:
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));


Period= "5Minute";
if(Period=="5Minute"){
	TimeFrameSet(inHourly);
	PlotOHLC(Open, High, Low, Close, "Hourly Price Chart", IIf(C>Ref(C,-1),34,IIf(C<Ref(C,-1),32,42)),64 | styleOwnScale);
}
~ manoj
 

Similar threads