Tjhai Trading System 02 for Amibroker (AFL)
tjhailioe over 15 years ago Amibroker (AFL)
Buy signal if a blue or green arrow appear. sell signal if the red or pink arrows appear, Be careful about false signals more secure if you are wait for confirmation from the next candle or you wait until the price goes up.
I hope it is useful to your trading from your friends tjhailioe@gmail.com from Indonesia
Screenshots
Indicator / Formula
_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 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
GfxSetOverlayMode(1);
GfxSelectFont("Tahoma", Status("pxheight")/30 );
GfxSetTextAlign( 6 );// center alignment
GfxSetTextColor( ParamColor( "Warna", colorLightGrey ) );
GfxSetBkMode(0); // transparent
GfxTextOut( "TJHAI TRADING SYSTEM 02", Status("pxwidth")/2, Status("pxheight")/16 );
_SECTION_BEGIN("tjhai trading system 02");
Buy = Cross( StochK( 15, 3 ), StochD( 15, 3, 3 ) );
Sell = Cross( StochD( 15, 3, 3 ), StochK( 15, 3 ) );
PlotShapes(IIf(Sell==1, shapeDownArrow, shapeNone), colorRed, 0,High, Offset=-15);
PlotShapes(IIf(Buy==1, shapeUpArrow , shapeNone), colorGreen, 0,Low, Offset=-15);
_SECTION_END();
_SECTION_BEGIN("MA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 20);
Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorRed ),styleDots, ParamStyle("Style") );
_SECTION_END();
_SECTION_BEGIN("MA1");
P = ParamField("Price field",-1);
Periods = Param("Periods",5 );
Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorBlue ), ParamStyle("Style") );
_SECTION_END();
x = MA(C,5);
y = MA (C,20);
PlotOHLC( x, x, y, y, "", IIf(x > y,colorPaleGreen, colorPink),styleNoLabel|styleCloud );
_SECTION_BEGIN("MA5-MA20 Crossover");
Buy1 = Cross( MA( Close,5 ), MA( Close, 20) );
Sell1 = Cross( MA( Close ,20 ), MA( Close, 5) );
PlotShapes(IIf(Sell1==1, shapeDownArrow, shapeNone), ColorRGB(251,132,242), 0,High, Offset=-15);
PlotShapes(IIf(Buy1==1, shapeUpArrow, shapeNone), colorBlue, 0,Low, Offset=-15);
Plot(V,"",IIf(C>O,colorGreen,IIf(C<O,4,7)),2|4|32768,5);
Plot(MA(V,45),"",colorBlue,0|4|32768,40);
//,styleLine|styleThick|styleOwnScale);0 comments
Leave Comment
Please login here to leave a comment.