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 ....
Bollinger bands 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 | /* STEVE PRIMO - STRATEGY 3 --JS with Pet - d and 25% bar up and down move with shapeUpArrow/shapeDownArrow go long when you are "green" on top of the 50 sma or short "red" below the 50 sma */ _SECTION_BEGIN ( "JS" ); basis = MA ( C , 20); dev = 0.382 * StDev ( Close , 20); upper = basis + dev; lower = basis - dev; bs = MA ( C , 50); // PET-D petd = EMA ( C ,13); petdcolor = IIf ( C > petd , colorGreen , colorRed ); Plot ( C , "" ,petdcolor , styleCandle , styleBar | styleThick ); trendup = C > bs; trenddn = C < bs; Plot ( bs, "Trend - Long Term" , colorWhite , style = styleLine , width = 3 ); Plot (basis, "Bollinger Mid Line" , colorRed , style = styleLine , width = 3); Plot (upper, "Bollinger Upper Line" , colorOrange , style = styleLine , width = 2); Plot (lower, "Bollinger Lower Line" , colorOrange , style = styleLine , width = 2); PlotOHLC ( upper, upper, lower, lower, "" , colorYellow , styleCloud ); R =( H - L ); PlotShapes ( IIf ( C > H -R*0.25, shapeUpArrow , shapeNone ), colorYellow ); PlotShapes ( IIf ( C < H -R*0.75 , shapeDownArrow , shapeNone ), colorOrange ); _SECTION_END (); |