Stock Portfolio Organizer
The ultimate porfolio management solution.
Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Color Bollinger Bond for Amibroker (AFL)
Copy & Paste Friendly
Back
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 , "Close" , ParamColor ( "Color" , colorBlack ), styleNoTitle | ParamStyle ( "Style" ) | GetPriceStyle () ); _SECTION_END (); _SECTION_BEGIN ( "Colored Bolinger Bands" ); pr= Param ( "Period" ,20,0,100,1); P = ParamField ( "Price field" ,-1); Style = ParamStyle ( "Style" ) | styleNoRescale | styleNoLabel | styleDashed ; BBT= BBandTop (P,pr,2); BBB= BBandBot (P,pr,2); topcond = ( Cross (BBT, C ) OR C >BBT) AND Ref ( C , -1)> BBT; botcond = ( Cross ( C ,BBB)) AND Ref ( C , -1 < BBB); bbtcolor = IIf ( BBT> Ref (BBT, -1), colorDarkGreen , colorRed ); bbbcolor = IIf ( BBB > Ref (BBB, -1), colorDarkGreen , colorRed ); Plot ( BBT, "BBTop" + _PARAM_VALUES (), bbtcolor, styleLine | styleThick ); Plot ( BBB, "BBBot" + _PARAM_VALUES (), bbbcolor, styleLine | styleThick ); PlotOHLC ( BBT,BBT,BBB,BBB, "" , ColorRGB (254,238,175), styleCloud ); Buy =botcond; Sell =topcond ; //Buy=ExRem(Buy,Sell); //Sell=ExRem(Sell,Buy); PlotShapes ( shapeUpArrow * Buy , colorGreen , 0, L , - 10); PlotShapes ( shapeDownArrow * Sell , colorRed , 0, H , - 10); _SECTION_END (); |