[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Nikkei target



PureBytes Links

Trading Reference Links




After the recent [semi-successful] H&S we have an inverted 
H&S already formatted.
We have had a neckline bulish breakout on Dec15, but it was 
the peculiar day of the geopolitical tricks.
The invH&S target line is now at 11,456.7 and looses 16.7 
per bar.
In 12 bars it will point 11,290.
Should we expect a Nikkei new high soon ???
Dimitris Tsokakis
 
PS. For recent and older H&S formations use 
the
 
// Historical H&S formations
x = Cum(1);per = 3;// sensitivity calibration
<FONT 
size=2>Plot(Zig(H,per),"",colorBlue,1);back=100;inter=200;s11=H;s12=L;R=0;RR=0;/* 
H & S */pR = PeakBars( s11, per, 1 ) == 0;endt1= 
SelectedValue(ValueWhen( pR, x, R+1 ));medt1=SelectedValue(ValueWhen( pR, x, 
R+2));startt1=SelectedValue(ValueWhen( pR, x, R+3 
));dt1=endt1-startt1;C1=x==endt1 OR x==medt1 OR x==startt1;endR = 
SelectedValue(ValueWhen( pR, s11, R+1 ) );medR=SelectedValue(ValueWhen( pR, 
s11, R+2 ) );startR = SelectedValue( ValueWhen( pR, s11, R+3  
));Filter1=medR>endR AND medR>startR AND 
abs(startR-endR)<0.02*(startR+endR) ANDdt1<inter AND 
endt1>SelectedValue(x)-back;MaxGraph=12;Graph1=C;Graph1Style=64;GraphXSpace=1;/*H&S 
Neck Line*/Aper=medt1-startt1;bper=endt1-medt1;La=  
SelectedValue(ValueWhen(x==medt1,LLV(L,Aper)));Lb=SelectedValue(ValueWhen(x==-1+endt1,LLV(L,bper)));Fa=L==La 
AND x>startt1 AND x<medt1;Fb=L==Lb AND x>medt1 AND 
x<endt1;endt= SelectedValue(ValueWhen( Fb, x 
));startt=SelectedValue(ValueWhen( Fa, x ));dtS =endt-startt;endS = 
Lb;startS = La;aS = (endS-startS)/dtS;bS = endS;trendlineS = aS * ( 
x  -endt ) + bS; Graph3 = IIf(Filter1 AND x>startt-5 AND 
x<endt+back,trendlineS,-1e10);Graph3BarColor=7;/*Inverted H & 
S*/tpR = TroughBars( s12, per, 1 ) == 
0;tendt1=SelectedValue(ValueWhen(tpr,x,RR+1));tmedt1=SelectedValue(ValueWhen(tpr,x,RR+2));tstartt1=SelectedValue(ValueWhen(tpr,x,RR+3));tdt1=tendt1-tstartt1;C2=x==tendt1 
OR x==tmedt1 OR x==tstartt1;tendR = SelectedValue(ValueWhen( tpR, s12, RR+1 
) );tmedR=SelectedValue(ValueWhen( tpR, s12, RR+2 ) );tstartR = 
SelectedValue( ValueWhen( tpR, s12, RR+3  ));Filter2=tmedR<tendR AND 
tmedR<tstartR ANDabs(tstartR-tendR)<0.02*(tstartR+tendR) AND 
tdt1<inter ANDtendt1>SelectedValue(x)-back;/*Inverted H&S Neck 
Line*/tAper=tmedt1-tstartt1;tbper=tendt1-tmedt1;Ha=  
SelectedValue(ValueWhen(x==tmedt1,HHV(H,tAper)));Hb=SelectedValue(ValueWhen(x==-1+tendt1,HHV(H,tbper)));tFa=H==Ha 
AND x>tstartt1 AND x<tmedt1;tFb=H==Hb AND x>tmedt1 AND 
x<tendt1;Rendt= SelectedValue(ValueWhen(tFb, x 
));Rstartt=SelectedValue(ValueWhen( tFa, x ));Rdt =Rendt-Rstartt;endR = 
Hb;startR = Ha;aR = (endR-startR)/Rdt;bR = endR;trendlineR = aR * ( 
x  -Rendt ) + bR; Graph4 = IIf(Filter2 AND x>Rstartt-5 AND 
x<Rendt+back,trendlineR,-1e10);Graph4BarColor=10;upcr=filter2 AND 
Cross(C,trendlineR) AND x>tendt1;dncr=filter1 AND Cross(trendlineS,C) AND 
x>endt1;/*H&S 
target*/diff1=ValueWhen(x==medt1,C-trendlineS);target1=trendlineS-diff1;target1cross=Cross(target1,C) 
AND Filter1;Graph5=IIf(filter1 AND x>endt1 AND 
x<endt1+back,target1,-1e10);Graph5Style=8;Graph5BarColor=7;/*Inverted 
H&S 
target*/diff2=ValueWhen(x==tmedt1,trendlineR-C);target2=trendlineR+diff2;target2cross=Cross(C,target2) 
AND Filter2;Graph6=IIf(Filter2 AND x>tendt1 AND 
x<tendt1+back,target2,-1e10);Graph6Style=8;Graph6BarColor=10;Graph1BarColor=IIf(C1 
AND Filter1,7,IIf(C2 AND Filter2,10,IIf(upcr OR target2cross,5,IIf(dncr OR 
target1cross,4,1))));GraphXSpace=5;
 
Move the cursor to previous bars to see the historical 
H&S, breakouts, necklines and targets, successful or 
not.


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html








Yahoo! Groups Sponsor


  ADVERTISEMENT 









Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




Attachment:
N225target.gif

Attachment: Description: "Description: GIF image"