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 ....
Swing 520 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 | //---- heikin ashi HaClose = ( O + H + L + C )/4; HaOpen = AMA ( Ref ( HaClose, -1 ), .40); HaHigh = Max ( H , Max ( HaClose, HaOpen ) ); HaLow = Min ( L , Min ( HaClose, HaOpen ) ); xDiff = (HaHigh - Halow) * IIf ( StrFind ( Name (), "JPY" ),100,10000); barcolor = IIf (HaClose >= HaOpen, colorGreen , colorRed ); PlotOHLC ( HaOpen, HaHigh, HaLow, HaClose, "" , barcolor, styleCandle ); // Plot(EMA(HaClose,9),"",colorWhite, styleLine); // Plot(EMA(HaClose,18),"",colorBlack, styleLine); _SECTION_BEGIN ( "Swing5" ); //Copyright Kamalesh Langote. Email:kpl@vfmdirect.com. More details at http://www.vfmdirect.com/kplswing //Save indicator as "kplswing.afl" in C: program files > Amibroker > Formulas > Custom folder and then drap and drop on price chart no= Param ( "Swing" , 5, 1, 55 ); tsl_col= ParamColor ( "Color" , colorCycle ); res= HHV ( H ,no); sup= LLV ( L ,no); avd= IIf ( C > Ref (res,-1),1, IIf ( C < Ref (sup,-1),-1,0)); avn= ValueWhen (avd!=0,avd,1); tsl= IIf (avn==1,sup,res); Plot (tsl, _DEFAULT_NAME (), tsl_col, styleStaircase ); // or styleaArea Buy = Cross ( C ,tsl); Sell = Cross (tsl, C ); shape= Buy * shapeUpArrow + Sell * shapeDownArrow ; PlotShapes (shape, IIf ( Buy ,tsl_col,tsl_col),0, IIf ( Buy , Low , High )); _SECTION_END (); _SECTION_BEGIN ( "Swing20" ); //Copyright Kamalesh Langote. Email:kpl@vfmdirect.com. More details at http://www.vfmdirect.com/kplswing //Save indicator as "kplswing.afl" in C: program files > Amibroker > Formulas > Custom folder and then drap and drop on price chart no= Param ( "Swing" , 20, 1, 55 ); tsl_col= ParamColor ( "Color" , colorBrightGreen ); res= HHV ( H ,no); sup= LLV ( L ,no); avd= IIf ( C > Ref (res,-1),1, IIf ( C < Ref (sup,-1),-1,0)); avn= ValueWhen (avd!=0,avd,1); tsl= IIf (avn==1,sup,res); Plot (tsl, _DEFAULT_NAME (), tsl_col, styleStaircase ); // or styleaArea Buy = Cross ( C ,tsl); Sell = Cross (tsl, C ); shape= Buy * shapeUpArrow + Sell * shapeDownArrow ; PlotShapes (shape, IIf ( Buy ,tsl_col,tsl_col),0, IIf ( Buy , Low , High )); _SECTION_END (); _SECTION_BEGIN ( "Swing10" ); //Copyright Kamalesh Langote. Email:kpl@vfmdirect.com. More details at http://www.vfmdirect.com/kplswing //Save indicator as "kplswing.afl" in C: program files > Amibroker > Formulas > Custom folder and then drap and drop on price chart no= Param ( "Swing" , 10, 1, 55 ); tsl_col= ParamColor ( "Color" , colorBlue ); res= HHV ( H ,no); sup= LLV ( L ,no); avd= IIf ( C > Ref (res,-1),1, IIf ( C < Ref (sup,-1),-1,0)); avn= ValueWhen (avd!=0,avd,1); tsl= IIf (avn==1,sup,res); Plot (tsl, _DEFAULT_NAME (), tsl_col, styleStaircase ); // or styleaArea Buy = Cross ( C ,tsl); Sell = Cross (tsl, C ); shape= Buy * shapeUpArrow + Sell * shapeDownArrow ; PlotShapes (shape, IIf ( Buy ,tsl_col,tsl_col),0, IIf ( Buy , Low , High )); _SECTION_END (); |