+91-0000000000

}

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

Price Bar

The Price Bar AFL code for Amibroker, in synergy with Amibroker Data Feeder, analyzes price bars’ characteristics, such as open, high, low, and close. By integrating real-time market data from Amibroker Data Feeder, this code provides traders with insights into price bar patterns and helps in decision-making based on current price movements.

/_SECTION_BEGIN("Price");

upbar = C > Ref( H, -1 );
downbar = C < Ref( L, -1 );

/* Colourized price bars drawn here */
Graph0 = Close;
Graph0Style = 128;

barcolor = IIf( downbar, 4, IIf( upbar, 5, 1 ) );
Graph0BarColor = ValueWhen( barcolor != 0, barcolor );
// Only allowed in recent Beta
//SetBarFillColor = ValueWhen( barcolor != 0, barcolor );


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 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();

Open chat
1
Hi, how can I help you?