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 ....
Dynamic Trader Oscillator 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 | _SECTION_BEGIN ( "DTO" ); /* DT Oscillator ** ** AFL translation by X-Trader ** http://www.x-trader.net ** */ PeriodRSI= Param ( "PeriodRSI" , 13, 1, 250, 1); PeriodStoch= Param ( "PeriodStoch" , 8, 1, 250, 1); MAType= Param ( "MAType" , 1, 1, 2, 1); PeriodSK= Param ( "PeriodSK" , 5, 1, 250, 1); PeriodSD= Param ( "PeriodSD" , 3, 1, 250, 1); Upper= Param ( "Upper" , 70, 50, 100, 1); Lower= Param ( "Lower" , 30, 0, 50, 1); StoRSI= 100*(( RSI ( PeriodRSI) - LLV ( RSI ( PeriodRSI ) , PeriodStoch ) ) / ( ( HHV ( RSI ( PeriodRSI) , PeriodStoch ) ) - LLV ( RSI ( PeriodRSI ), PeriodStoch ) ) ); if (MAType==1) { SK= MA (StoRSI,PeriodSK); SD= MA (SK,PeriodSD); } if (MAType==2) { SK= EMA (StoRSI,PeriodSK); SD= EMA (SK,PeriodSD); } Plot (SK, "DTOscSK" , ParamColor ( "ColorSK" , colorBlue ), styleThick ); Plot (SD, "DTOscSD" , ParamColor ( "ColorSD" , colorBlack ), styleThick ); Plot (0, "ZeroLine" , ParamColor ( "ColorZero" , colorBlack ), styleLine ); Plot (Upper, "Upper" , ParamColor ( "ColorUpper" , colorRed ), styleLine ); Plot (Lower, "Lower" , ParamColor ( "ColorLower" , colorGreen ), styleLine ); _SECTION_END (); |