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 ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

kimo for Amibroker (AFL)

Copy & Paste Friendly
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
_SECTION_BEGIN("Auto Target Levels");
 
GraphXSpace=1;
Plot(C,"", colorWhite,styleCandle);
 
// Get values for target levels
 
StartBar=SelectedValue(BarIndex());
FinishBar = EndValue( BarIndex() );
i = startbar;
period = FinishBar - StartBar;
 
Lo =LLV(L,period);
Hi = HHV(H,period);
Line0 = 0;
Line1 = 0;  //Target resisten 1
Line2 = 0;  //Target resisten 2
Line3 = 0;  //Target resisten 3
Line4 = 0;  //Target support 1
Line5 = 0;  //Target support 2
Line6 = 0; // Target support 3
Line100 = 0;
 
for( i = startbar; i < finishbar; i++ )
{
if(EndValue(C)<SelectedValue(C))
{
Line0 = EndValue(Lo);
Line100 = EndValue(Hi);
Line1 = Line0 + (Line0*Param("UpTarget1", 0.10, 0, 1, 0.01));
Line2 = Line0 + (Line0*Param("UpTarget2", 0.18, 0, 1, 0.01));
Line3 = Line0 + (Line0*Param("UpTarget3", 0.26, 0, 1, 0.01));
Line4 = Line100 - (Line100*Param("DownTarget1", 0.10, 0, 1, 0.01));
Line5 = Line100 - (Line100*Param("DownTarget2", 0.20, 0, 1, 0.01));
Line6 = Line100 - (Line100*Param("DownTarget3", 0.30, 0, 1, 0.01));
 
}
else
{
Line100 = EndValue(Lo);
Line0 = EndValue(Hi);
Line1 = Line100 + (Line100*Param("UpTarget1", 0.10, 0, 1, 0.01));
Line2 = Line100 + (Line100*Param("UpTarget2", 0.18, 0, 1, 0.01));
Line3 = Line100 + (Line100*Param("UpTarget3", 0.26, 0, 1, 0.01));
Line4 = Line0 - (Line0*Param("DownTarget1", 0.10, 0, 1, 0.01));
Line5 = Line0 - (Line0*Param("DownTarget2", 0.20, 0, 1, 0.01));
Line6 = Line0 - (Line0*Param("DownTarget3", 0.30, 0, 1, 0.01));
 
}
}
 
Uppercolor=ParamColor("Uppercolor", colorRed);
Midcolor=ParamColor("Midcolor", colorSkyblue);
Lowercolor=ParamColor("Lowercolor", colorYellow);
 
/* Perhitungan target dimulai dari barindex yang dipilih yaitu dimana yang kita klik nanti.
Untuk mempersempit range pengukuran, klik ganda dan set areanya.
*/
target0= LineArray(startbar, Line0, finishbar, Line0, 0, 1);
target100 = LineArray(startbar, Line100, finishbar, Line100, 0, 1);
 
// depth of middle lines
n= round((finishbar-startbar)/2);
 
//Target line. 0=no extend, 1=extend right. 2=extend left. 3=extend both.
target1= LineArray((finishbar-n), Line1, finishbar, Line1, 1, 1);
target2= LineArray((finishbar-n), Line2, finishbar, Line2, 1, 1);
target3= LineArray((finishbar-n), Line3, finishbar, Line3, 1, 1);
target4= LineArray((finishbar-n), Line4, finishbar, Line4, 1, 1);
target5= LineArray((finishbar-n), Line5, finishbar, Line5, 1, 1);
target6= LineArray((finishbar-n), Line6, finishbar, Line6, 1, 1);
 
 
Plot(target0,"", colorWhite, styleNoLabel);
Plot(target100,"", colorRed, styleNoLabel);
Plot(target3,"", Uppercolor, styleNoLabel);
Plot(target2,"", Midcolor, styleNoLabel);
Plot(target1,"", Lowercolor, styleNoLabel);
Plot(target4,"", Lowercolor, styleDashed|styleNoLabel);
Plot(target5,"", Midcolor, styleDashed|styleNoLabel);
Plot(target6,"", Uppercolor, styleDashed|styleNoLabel);
 
 
 
Title = Name() + " - Auto Target Levels "
 
+"\n"+EncodeColor(colorLime)+"Open="+EncodeColor(colorWhite)+O
+"\n"+EncodeColor(colorLime)+"Close="+EncodeColor(colorWhite)+C
+"\n"+EncodeColor(colorLime)+"High="+EncodeColor(colorWhite)+H
+"\n"+EncodeColor(colorLime)+"Low="+EncodeColor(colorWhite)+L
+"\n"+EncodeColor(Uppercolor)+"UpTarget3= "+line3
+"\n"+EncodeColor(Midcolor)+"UpTarget2= "+line2
+"\n"+EncodeColor(Lowercolor)+"UpTarget1= "+line1
+"\n"+EncodeColor(Lowercolor)+"DownTarget1= "+line4
+"\n"+EncodeColor(Midcolor)+"DownTarget2= "+line5
+"\n"+EncodeColor(Uppercolor)+"DownTarget3= "+line6
+"\n"+EncodeColor(colorWhite)+"x= "+line0
+"\n"+EncodeColor(colorWhite)+"y= "+line100
+"\n "
  
;
_SECTION_END();
 
 
_SECTION_BEGIN("Background_Setting");
SetChartBkGradientFill( ParamColor("BgTop", colorBlack),
ParamColor("BgBottom", colorBlack),ParamColor("titleblock",colorGrey40));
_SECTION_END();
 
 
_SECTION_BEGIN("Three Shift Indicator");
 
EMAPeriod = Param("Fast EMA",3,1,25,1);
DisplacementPeriod = Param("Shift",-3,-25,25,1);
 
//Plot the Lines
Plot(Ref(EMA(Close,EMAPeriod),-DisplacementPeriod),"DEMA1",colorYellow,styleLine) ;
Plot(EMA(Close, 5 ), "5 Wk EMA", colorBlue, styleLine);
Plot(EMA(Close, 15 ), "15 Wk EMA", colorRed, styleLine);
Title = Name() + " " + Date() + EncodeColor(colorIndigo) + " " + C + WriteVal(ROC( Close, 1) ) + "%" + EncodeColor(colorBlack) + " Three Shift Indicator ";
_SECTION_END();
 
_SECTION_BEGIN("Background");
SetChartOptions(0,chartShowArrows|chartShowDates);
priceTitle=StrFormat("---- {{NAME}} ---------- {{VALUES}}");
Title ="Averages" + priceTitle;
 
if( ParamToggle("Tooltip shows", "All Values|Only Prices" ) )
{
ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));
}
 
SetChartBkColor(ParamColor("Outer panel color ",colorBlack)); // color of outer border
SetChartBkGradientFill( ParamColor("Inner panel color upper half",colorBlack),ParamColor("Inner panel color lower half",colorBlack)); // color of inner panel
_SECTION_END();
 
Buy1=Cross(Ref(EMA(Close,EMAPeriod),-DisplacementPeriod),EMA(Close,5));
Buy2=Cross(C,Ref(EMA(Close,EMAPeriod),-DisplacementPeriod))AND Ref(EMA(Close,EMAPeriod),-DisplacementPeriod)>EMA(Close,5);
Buy=Buy1 OR Buy2;
Sell1=Cross(EMA(Close,5),Ref(EMA(Close,EMAPeriod),-DisplacementPeriod));
Sell2=Cross(Ref(EMA(Close,EMAPeriod),-DisplacementPeriod),C) AND Ref(EMA(Close,EMAPeriod),-DisplacementPeriod)<EMA(Close,5);
Sell=Sell1 OR Sell2;
PlotShapes(IIf(Buy,shapeSmallUpTriangle,shapeNone),colorGreen,0,L,-15);
PlotShapes(IIf(Sell,shapeSmallDownTriangle, shapeNone),colorRed,0,H,-15);
Back