_SECTION_BEGIN("[COLOR="Red"][B]YOUR_SYSTEM_NAME_COMES_HERE[/B][/COLOR]");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Buy = [B][COLOR="Red"]YOUR_BUY_CONDITIONS_COMES_HERE[/COLOR][/B];
Sell = [COLOR="Red"][B]YOUR_SELL_CONDITIONS_COMES_HERE[/B][/COLOR];
MyColor = IIf(Buy, colorBrightGreen, colorRed);
// The above line is very generalized. You can use your own conditions to
// get exact colour combinatins.
// Example :
// MYcolor = IIf( EMA(C,ShortPeriod) > EMA(C,LongPeriod), colorBrightGreen,
// IIf(EMA(C,LongPeriod) > EMA(C,ShortPeriod) AND C < Peak(C,5,1), colorRed,
// colorBlue));
PlotOHLC( Open, High, Low, Close, "", Mycolor, styleBar );
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ),0, IIf( Buy, Low, High ) );
Filter=Buy OR Sell;
SetOption("NoDefaultColumns", True );
AddColumn( DateTime(), "Date", formatDateTime );
AddTextColumn( FullName(), "Full name", 77 , colorDefault, IIf( Buy, colorGreen, colorRed ) );
AddColumn( IIf( Buy, 66, 83 ), "Signal", formatChar, colorDefault, bkcolor =IIf (Buy,colorGreen, colorRed ));
_SECTION_END();