Stock Portfolio Organizer
The ultimate porfolio management solution.
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Support Resistance based Trading System for Amibroker (AFL)
You might find it useful. Found it on this website here this is a breakout strategy where buy/sell signals are generated when price crosses a dynamic support/resistance
You may visit the website for some awesome indicators too… :)
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: Support Resistance based Trading System // Author/Uploader: Trading Tuitions // E-mail: support@tradingtuitions.com // Website: www.tradingtuitions.com //------------------- _SECTION_BEGIN ( "Dynamic Support Resistance" ); 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 ; SetChartOptions (0, chartShowArrows | chartShowDates ); _N (Title = StrFormat ( "{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}" , O , H , L , C )); Plot ( Close , "Price" , colorWhite , styleCandle ); period= Optimize ( "Swing" ,3,1,25,1); res= HHV ( H ,period); //resistance sup= LLV ( L ,period); //support DynamicPivot= IIf ( ValueWhen ( IIf ( C > Ref (res,-1),1, IIf ( C < Ref (sup,-1),-1,0))!=0, IIf ( C > Ref (res,-1),1, IIf ( C < Ref (sup,-1),-1,0)),1)==1,sup,res); //If current close breaks the resistance then dynamic pivot level would be last support, if close breaks the support then dynamic pivot level will be last resistance Plot (DynamicPivot, "DynamicPivot" , colorBlue , styleStaircase ); Buy = Cross ( C ,DynamicPivot) ; Sell = Cross (DynamicPivot, C ) ; Short = Sell ; Cover = Buy ; StopLoss=2; ApplyStop (Type=0,Mode=1,Amount=StopLoss); /* 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); _SECTION_END (); |
3 comments
Leave Comment
Please login here to leave a comment.
Back
Error on line 27
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C ));
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g, {{VALUES}}", O, H, L, C ));
This would come in AMI latest version, just delete this line, it will not affect chart
or do following -
//_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g, {{VALUES}}", O, H, L, C ));