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 ....
RSI DYNAMIC 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 | _SECTION_BEGIN ( "RSI DYNAMIC" ); i=0; Period = Param ( "Period" , 12, 2, 30, 1); myRSI = RSI (Period); Adev = StDev (myRSI, 3*Period); Hiline = 50 + 2.2*Adev; Loline = 40 - 1.6*Adev; Plot (myRSI, "" , colorBlue ,8); Plot (Hiline, "" , colorRed ,4); Plot (Loline, "" , colorGreen ,4); Title = " " + Name () + " Dynamic RSI Threshold, t = " + WriteVal (period, format=1.0) + " " ; Buy = ( RSI (12)<= Loline); Sell = ( RSI (12)>= Hiline); PlotShapes ( Buy * shapeUpArrow , colorGreen ); PlotShapes ( Sell * shapeDownArrow , colorRed ); R1= RSI (12)<= Loline ; R2= RSI (12)>= Hiline ; IIf (R1,i+1,i); RSIStatus= WriteIf (R1, "Bullish" , WriteIf (R2, "Bearish" , WriteIf ( IsNull ( RSI (12)), "N/A" , "Neutral" ))); RSIColor= IIf (R1, colorGreen , IIf (R2, colorRed , colorLightGrey )); Filter = 1; AddTextColumn (RSIStatus, "RSI DYNAMIC" ,1, colorWhite ,RSIColor); _SECTION_END (); |