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 ....
master 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 | _SECTION_BEGIN ( "xtl" ); tgt = 35; a = CCI (20) < -tgt; b = CCI (20) > tgt; state = IIf (a>b,-1, IIf (a==b,0,1)); Color = IIf (state == 0, colorBlack , IIf (state == 1, colorLime , IIf (state == -1, colorRed , 0))); //Plot(state, "", color, styleHistogram); SetChartOptions ( 0, chartShowDates | chartShowArrows | chartLogarithmic | chartWrapTitle ); _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" , color, styleNoTitle | styleBar ); _SECTION_END (); _SECTION_BEGIN ( "DispMA" ); P = ParamField ( "Field" ); Type = ParamList ( "Type" , "Simple,Exponential,Double Exponential,Tripple Exponential,Wilders,Weighted" ); Periods = Param ( "Periods" ,30, 2, 300 ); Displacement = Param ( "Displacement" , 15, -50, 50 ); m = 0; if ( Type == "Simple" ) m = MA ( P, Periods ); if ( Type == "Exponential" ) m = EMA ( P, Periods ); if ( Type == "Double Exponential" ) m = DEMA ( P, Periods ); if ( Type == "Tripple Exponential" ) m = TEMA ( P, Periods ); if ( Type == "Wilders" ) m = Wilders ( P, Periods ); if ( Type == "Weighted" ) m = WMA ( P, Periods ); Plot ( m, _DEFAULT_NAME (), ParamColor ( "Color" , ColorCycle), ParamStyle ( "Style" ), 0, 0, Displacement ); _SECTION_END (); _SECTION_BEGIN ( "DispMA1" ); P = ParamField ( "Field" ); Type = ParamList ( "Type" , "Simple,Exponential,Double Exponential,Tripple Exponential,Wilders,Weighted" ); Periods = Param ( "Periods" ,30, 2, 300 ); Displacement = Param ( "Displacement" , 15, -50, 50 ); m = 0; if ( Type == "Simple" ) m = MA ( P, Periods ); if ( Type == "Exponential" ) m = EMA ( P, Periods ); if ( Type == "Double Exponential" ) m = DEMA ( P, Periods ); if ( Type == "Tripple Exponential" ) m = TEMA ( P, Periods ); if ( Type == "Wilders" ) m = Wilders ( P, Periods ); if ( Type == "Weighted" ) m = WMA ( P, Periods ); Plot ( m, _DEFAULT_NAME (), ParamColor ( "Color" , ColorCycle), ParamStyle ( "Style" ), 0, 0, Displacement ); _SECTION_END (); |