Beruflich Dokumente
Kultur Dokumente
_SECTION_BEGIN("BW Alligator");
/*** The trend indicators ***/
P= ParamList("Price", "Close|(H+L)/2|(H+C+L)/3",1);
if (P=="Close")
A = C;
else
if (P=="(H+C+L)/3")
A = (H+C+L)/3;
else
A = (H+L)/2;
AlligatorJaw = Ref(Wilders(A,13),-8);
AlligatorTeeth = Ref(Wilders(A,8), -5);
AlligatorLips = Ref(Wilders(A,5), -3);
AO=MA(A,5)-MA(A,34);
AOcolor=IIf(AO>Ref(AO,-1),colorGreen,colorRed);
AC=AO-MA(AO,5);
ACcolor=IIf(AC>Ref(AC,-1),colorGreen,colorRed);
Plot(AO,"AO",AOcolor,styleHistogram|styleThick);
_SECTION_END();
_SECTION_BEGIN("BW Fractal");
UpFractal= ValueWhen(
(Ref(H,-2) > Ref(H, -4)) AND
(Ref(H,-2) > Ref(H, -3)) AND
(Ref(H,-2) > Ref(H, -1)) AND
(Ref(H,-2) > H), Ref(H,-2));
DownFractal= ValueWhen(
(Ref(L,-2) <= Ref(L, -4)) AND
(Ref(L,-2) <= Ref(L, -3)) AND
(Ref(L,-2) <= Ref(L, -1)) AND
(Ref(L,-2) <= L), Ref(L,-2));
_SECTION_END();
_SECTION_BEGIN("Exploration");
/*
Buy: Scan stocks only breakout..maxbreakout (1~30%, default) and Trend is
bullish
Sell: Scan stocks only breakout..maxbreakout (1~30%, default) and Trend is
bearish
*/
//== Price Increment Value - depend on different country
Inc = 1;
SetSortColumns(-2);
_SECTION_END();
GfxSetOverlayMode(1);
GfxSelectFont("Tahoma", Status("pxheight")/6 );
GfxSetTextAlign( 6 );// center alignment
GfxSetTextColor( ParamColor( "Warna", colorLightGrey ) );
GfxSetBkMode(0); // transparent
GfxTextOut( "Awesome", Status("pxwidth")/2, Status("pxheight")/2 );
--------
P= ParamList("Price", "Close|(H+L)/2|(H+C+L)/3",1);
if (P=="Close")
A = C;
else
if (P=="(H+C+L)/3")
A = (H+C+L)/3;
else
A = (H+L)/2;
AlligatorJaw = Ref(Wilders(A,13),-8);
AlligatorTeeth = Ref(Wilders(A,8), -5);
AlligatorLips = Ref(Wilders(A,5), -3);
AO=MA(A,5)-MA(A,34);
// Supertrend Section
shrink = 2^(-HalfLife);
shrink2 = 1 - shrink;
topChan[0] = High[0];
botChan[0] = Low[0];
HH = HHV(High, ChanLen);
LL = LLV(Low, Chanlen);
Up=topChan;
Dn=botChan;
TrendUp=TrendDown=Null;
trend[0]=1;
changeOfTrend=0;
flag=flagh=0;
TrendUp[i] = Null;
TrendDown[i] = Null;
trend[i]=1;
if (Close[i]>Up[i-1]) {
trend[i]=1;
else if (Close[i]<Dn[i-1]) {
trend[i]=-1;
if (trend[i-1] == 1) changeOfTrend = 1;
else if (trend[i-1]==1) {
trend[i]=1;
changeOfTrend = 0;
else if (trend[i-1]==-1) {
trend[i]=-1;
changeOfTrend = 0;
flag=1;
else {
flag=0;
flagh=1;
else {
flagh=0;
}
Dn[i]=Dn[i-1];
{ Up[i]=Up[i-1];
if (flag==1)
{ Up[i]=topchan[i];;
if (flagh==1)
{ Dn[i]=botChan[i];;
if (trend[i]==1) {
TrendUp[i]=Dn[i];
if (changeOfTrend == 1) {
TrendUp[i-1] = TrendDown[i-1];
changeOfTrend = 0;
else if (trend[i]==-1) {
TrendDown[i]=Up[i];
if (changeOfTrend == 1) {
TrendDown[i-1] = TrendUp[i-1];
changeOfTrend = 0;
}
}
supertrendUp = trend==1;
supertrendDown = trend==-1;
Buy = (Cross(AO, 0) AND MACD() > Signal()) OR (Cross(MACD(), Signal()) AND AO > 0)
AND tenBarMA AND supertrendUp;
Sell = (Cross(0, AO) AND MACD() < Signal()) OR (Cross(Signal(), MACD()) AND AO < 0)
AND !tenBarMA AND supertrendDown;
SetSortColumns(-3);
Buy = (Cross(AO, 0) AND MACD() > Signal() AND trend == 1 AND MA(Close, 10) >
MA(Close, 20)) OR (Cross(MACD(), Signal()) AND AO > 0 AND trend == 1 AND MA(Close,
10) > MA(Close, 20));
Sell = (Cross(0, AO) AND MACD() < Signal() AND trend == -1 AND MA(Close, 10) <
MA(Close, 20)) OR (Cross(Signal(), MACD()) AND AO < 0 AND trend == -1 AND MA(Close,
10) < MA(Close, 20));