+91-0000000000

}

Monday – Friday : 9:00 AM – 6:30 PM

Multi-Time-Frame-By-Chandrakant

Multi-Time-Frame-By-Chandrakant AFL in Amibroker facilitates the analysis of multiple time frames for trend identification. Integrated with Amibroker data feed, this AFL provides a comprehensive view of trends across different time horizons. Traders utilize this AFL, leveraging Amibroker data feed for accurate price information, to make informed decisions based on the analysis of trends across multiple time frames.

/
// created by chandrakant
/*1. Here are some observations to keep in mind that will help assure 
you are in a good trending move which is detrimental to the success 
of the trade moving higher before the inevitable over exhausted trend.
 
2 Consider only going long on the 5M if the 30M (two rows above) is also blue. 

3 Consider the 1hr row as well being blue since it has an effect too.

4 The 15M row has to be blue with NO exceptions

5 The 30M row if blue has less effect on the trade as compared to the 15M row 
but keep this in mind. The 30M row being blue helps the 15M row continue to stay blue. 

6 The 1hr row has even less effect OR importance but it too keeps the 30M 
from weakening to some minor degree. 
*/
// Define label bar (x) position location
SetChartBkColor( ParamColor( "bk ground", colorBlack) ); 
SetChartOptions(0,chartShowArrows|chartShowDates); 
gxs=Param("GRAPH spaceing",10,5,50,5); 
GraphXSpace = gxs;

blankRightBars = 5; //insert actual blank right bars specified in Preferences 
barsInView = Status("lastvisiblebarindex") - Status("firstvisiblebarindex") - blankRightBars;
Offset = Param("Offset Bar", 0.95, 0, 1, 0.01);
textOffset = BarCount - (Offset * barsInView);

_SECTION_BEGIN("default");

HaClose =(O+H+L+C)/4; 
HaOpen = AMA( Ref( HaClose, -1 ), 0.5 ); 
HaHigh = Max( H, Max( HaClose, HaOpen ) ); 
HaLow = Min( L, Min( HaClose, HaOpen ) );
PlotText(":"+Interval(2), textoffset,8.4880, formatChar,1);
 X=Haopen Haclose, colorRed, IIf( X,7,6));
Color = IIf( Haopen > Haclose,4, IIf( HaHigh < HaLow,colorYellow, 6));
Plot(2,"", Color,  styleHistogram+styleThick|styleOwnScale|styleNoLabel, 0, 100 );
Plot( 2.5,"",1,styleOwnScale|styleArea|styleNoLabel,0, 100 );
_SECTION_END();

_SECTION_BEGIN("2");
Compress2= Param("Compression",2,2,4,1); 
TimeFrameSet(Compress2* Interval());
HaClose2 =(O+H+L+C)/4; 
HaOpen2 = AMA( Ref( HaClose2, -1 ), 0.5 ); 
HaHigh2 = Max( H, Max( HaClose2, HaOpen2 ) ); 
HaLow2 = Min( L, Min( HaClose2, HaOpen2 ) ); 
PlotText(":"+Interval(2), textoffset,8.4905,formatChar,1);
TimeFrameRestore();
HAopen2f=TimeFrameExpand( Haopen2, Compress2* Interval()); 
Haclose2f=TimeFrameExpand( Haclose2, Compress2* Interval()); 
HaHigh2f=TimeFrameExpand( Hahigh2, Compress2* Interval());
HaLow2f=TimeFrameExpand( Halow2, Compress2* Interval());
Color2 = IIf( Haopen2f > Haclose2f,4, IIf( HaHigh2f < HaLow2f,colorYellow, 6));
Plot(4,"", Color2,  styleHistogram+styleThick|styleOwnScale|styleNoLabel, 0, 100 );
Plot( 4.5,"",colorBlack,styleOwnScale|styleArea|styleNoLabel,0, 100 );
_SECTION_END();
_SECTION_BEGIN("3");
Compress3= Param("Compression3",4,4,100,1); 
TimeFrameSet(Compress3* Interval());
HaClose3 =(O+H+L+C)/4; 
HaOpen3 = AMA( Ref( HaClose3, -1 ), 0.5 ); 
HaHigh3 = Max( H, Max( HaClose3, HaOpen3 ) ); 
HaLow3 = Min( L, Min( HaClose3, HaOpen3 ) ); 
PlotText(":"+Interval(2), textoffset,8.4926, formatChar,1);
TimeFrameRestore();
HAopen3f=TimeFrameExpand( Haopen3, Compress3* Interval());  
Haclose3f=TimeFrameExpand( Haclose3, Compress3* Interval()); 
HaHigh3f=TimeFrameExpand( Hahigh3, Compress3* Interval());
HaLow3f=TimeFrameExpand( Halow3, Compress3* Interval());
color3 = IIf( Haopen3f > Haclose3f,4, IIf( HaHigh3f < HaLow3f,colorYellow,6));
Plot(6,"", Color3,  styleHistogram+styleThick|styleOwnScale|styleNoLabel, 0, 100 );
Plot( 6.5,"",colorBlack,styleOwnScale|styleArea|styleNoLabel,0, 100 );
_SECTION_END();
_SECTION_BEGIN("4");
Compress4= Param("Compression4",8,8,500,10); 
TimeFrameSet(Compress4* Interval());
HaClose4 =(O+H+L+C)/4; 
HaOpen4 = AMA( Ref( HaClose4, -1 ), 0.5 ); 
HaHigh4 = Max( H, Max( HaClose4, HaOpen4 ) ); 
HaLow4 = Min( L, Min( HaClose4, HaOpen4 ) ); 
PlotText(":"+Interval(2), textoffset, 8.4950, formatChar,1);
TimeFrameRestore();
HAopen4f=TimeFrameExpand( Haopen4, Compress4* Interval());  
Haclose4f=TimeFrameExpand( Haclose4, Compress4* Interval());
HaHigh4f=TimeFrameExpand( Hahigh4, Compress4* Interval());
HaLow4f=TimeFrameExpand( Halow4, Compress4* Interval());
Color4 = IIf( Haopen4f > Haclose4f,4, IIf( HaHigh4f < HaLow4f,colorYellow, 6));
Plot(8,"", Color4,  styleHistogram+styleThick|styleOwnScale|styleNoLabel, 0, 100 );
Plot( 8.5,"",colorBlack,styleOwnScale|styleArea|styleNoLabel,0, 100 );
_SECTION_END();

Open chat
1
Hi, how can I help you?