Stock Portfolio Organizer
The ultimate porfolio management solution.
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
2-3 Moving Average Crossover Trading System for Amibroker (AFL)
Its a short term trading system which is based on the crossover of the 2 and 3 moving averages.
Indicator / Formula
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | //------------------------------------------------------ // // Formula Name: 2-3 Moving Average Crossover Trading System // Author: protrader957 //------------------------------------------------------ _SECTION_BEGIN ( "2-3 Crossover Trading System" ); SetChartOptions (0, chartShowArrows | chartShowDates ); _N (Title = StrFormat ( "{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}" , O , H , L , C )); //Initial Parameters SetTradeDelays ( 1, 1, 1, 1 ); SetOption ( "InitialEquity" , 200000); SetOption ( "FuturesMode" , True ); SetOption ( "MinShares" ,1); SetOption ( "CommissionMode" ,2); SetOption ( "CommissionAmount" ,50); SetOption ( "AccountMargin" ,10); SetOption ( "RefreshWhenCompleted" , True ); SetPositionSize (150, spsShares ); SetOption ( "AllowPositionShrinking" , True ); BuyPrice = Open ; SellPrice = Open ; ShortPrice = Open ; CoverPrice = Open ; //Parameters MALength1 = 2; MALength2 = 3; //Buy-Sell Logic Buy = Cross ( ema ( C , MALength1 ), ema ( C , MALength2 )); Sell = Cross ( ema ( C , MALength2 ), ema ( C , MALength1 )) ; Buy = ExRem ( Buy , Sell ); Sell = ExRem ( Sell , Buy ); Short = Sell ; Cover = Buy ; Plot ( Close , "Price" , colorWhite , styleCandle ); Plot ( ema ( C , MALength1 ), "FastEMA" , colorWhite ); Plot ( ema ( C , MALength2 ), "SlowEMA" , colorBlue ); /* Plot Buy and Sell Signal Arrows */ PlotShapes ( IIf ( Buy , shapeSquare , shapeNone ), colorGreen , 0, L , Offset=-40); PlotShapes ( IIf ( Buy , shapeSquare , shapeNone ), colorLime , 0, L , Offset=-50); PlotShapes ( IIf ( Buy , shapeUpArrow , shapeNone ), colorWhite , 0, L , Offset=-45); PlotShapes ( IIf ( Cover , shapeSquare , shapeNone ), colorGreen , 0, L , Offset=-40); PlotShapes ( IIf ( Cover , shapeSquare , shapeNone ), colorLime , 0, L , Offset=-50); PlotShapes ( IIf ( Cover , shapeUpArrow , shapeNone ), colorWhite , 0, L , Offset=-45); PlotShapes ( IIf ( Sell , shapeSquare , shapeNone ), colorRed , 0, H , Offset=40); PlotShapes ( IIf ( Sell , shapeSquare , shapeNone ), colorOrange , 0, H , Offset=50); PlotShapes ( IIf ( Sell , shapeDownArrow , shapeNone ), colorWhite , 0, H , Offset=-45); PlotShapes ( IIf ( Short , shapeSquare , shapeNone ), colorRed , 0, H , Offset=40); PlotShapes ( IIf ( Short , shapeSquare , shapeNone ), colorOrange , 0, H , Offset=50); PlotShapes ( IIf ( Short , shapeDownArrow , shapeNone ), colorWhite , 0, H , Offset=-45); |
0 comments
Leave Comment
Please login here to leave a comment.
Back