Stock Portfolio Organizer
The ultimate porfolio management solution.
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Bollinger band using STD Dev and MA for Amibroker (AFL)
Bollinger Band using Standard Deviation and MA. Buy Sell when reaches the low or high of the band
Similar Indicators / Formulas
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 62 63 64 65 66 67 68 69 70 71 72 73 | _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 , "Current Price: " , IIf ( O < C , colorBrightGreen , colorRed ), styleCandle ); _SECTION_END (); _SECTION_BEGIN ( "Middle Band" ); P = ParamField ( "Price Field" , -1); Period = Param ( "Period" , 20, 2, 300, 1); MiddleBand = MA (P, Period); Plot (MiddleBand, "" , ParamColor ( "Color" , colorYellow ), ParamStyle ( "Style" )| styleNoRescale ); _SECTION_END (); _SECTION_BEGIN ( "Uppar Band" ); P = ParamField ( "Price Field" , -1); Period = Param ( "Period" , 20, 2, 300, 1); UpparBand = MA (P, Period) + StDev (P, Period)*2; Plot (UpparBand, "" , ParamColor ( "Color" , colorGreen ), ParamStyle ( "Style" )| styleNoRescale ); _SECTION_END (); _SECTION_BEGIN ( "Lower Band" ); P = ParamField ( "Price Field" , -1); Period = Param ( "Period" , 20, 2, 300, 1); LowerBand = MA (P, Period) - StDev (P, Period)*2; Plot (LowerBand, "" , ParamColor ( "Color" , colorRed ), ParamStyle ( "Style" )| styleNoRescale ); _SECTION_END (); _SECTION_BEGIN ( "Buy Sell calculation" ); PositionSize = 5000; Buy = Ref ( L < LowerBand, -2) AND Ref ( C > LowerBand, -1); Short = Ref ( H > UpparBand, -2) AND Ref ( C < UpparBand, -1); Buyst= ValueWhen ( Buy , O ,1); Shortst= ValueWhen ( Short , O ,1); Sell = Cross (Buyst*0.995, C ) ; Cover = Cross ( C ,Shortst*1.005); Buy = ExRem ( Buy , Short ) OR ExRem ( Buy , Sell ) ; Short = ExRem ( Short , Buy ) OR ExRem ( Short , Cover ); Sell = ExRem ( Sell , Buy ); Cover = ExRem ( Cover , Short ); SellPrice = ValueWhen ( Sell , C , 1 ); BuyPrice = ValueWhen ( Buy , C , 1 ); FirstVisibleBar = Status ( "FirstVisibleBar" ); Lastvisiblebar = Status ( "LastVisibleBar" ); for ( b = Firstvisiblebar; b <= Lastvisiblebar AND b < BarCount ; b++) { if ( Buy [b] ) PlotText ( "\n Buy\N " + NumToStr ( BuyPrice [b],1.2),b, BuyPrice [b], colorBrightGreen ); else if ( Sell [b] ) PlotText ( " \nSell \N" + NumToStr ( SellPrice [b],1.2),b, SellPrice [b], colorRed ); } PlotShapes ( shapeUpArrow * Buy , colorGreen , 0, L , Offset=-45); PlotShapes ( shapeDownArrow * Sell , colorRed , 0, H , Offset=-45); _SECTION_END (); |
3 comments
Leave Comment
Please login here to leave a comment.
Back
hello surindersingh,
line 65
if( Buy[b] ) PlotText(" \nBuy \N “+NumToStr(BuyPrice[b],1.2),b,BuyPrice[b],colorBrightGreen);
else if( Sell[b] ) PlotText(” \nSell \N"+NumToStr(SellPrice[b],1.2),b,SellPrice[b],colorRed);
some incorrect space sequence.
Waiting for your early reply.
Thanks with advance
jayakumar
correction :
good luck
“زنده باد ایران من”
@admin / mohammada
I require few parameters setup
for any AFls we use
just like drop on any afl and if iselect parameters will control afl.
Like if i say in parameters (intraday )
than it will close trades by 3.15 and show my open positions to be closed on backtesting reports.
Like wise 3 more condition and to help the matter I have written afls also but you just need to integrate.
Thanks,
Viral
dalalviral@yahoo.com