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

[amibroker] The priceless Stochastic divergence



PureBytes Links

Trading Reference Links




The recent 4.41 multi-time-frame functions make this 
interesting case of divergence possible though a few lines.
We ask a lower Daily Stochastic Peak as soon as the Weekly 
Stochastic is still ascending.
 In an IB window paste the
TimeFrameSet( inDaily ); sD = StochD(); 
TimeFrameSet( inWeekly ); sW=StochD(); TimeFrameRestore(); 
DailyStochD=TimeFrameExpand( sD, 
inDaily);WeeklyStochD=TimeFrameExpand(sW,inWeekly);Plot(DailyStochD, 
"Daily StochD", colorIndigo );Plot( WeeklyStochD, "Weekly StochD", 
colorBlue);Cond1=Ref(DailyStochD,-1)==HHV(DailyStochD,3);// 
Plot(Cond1*DailyStochD,"",4,2);sD1=ValueWhen(Cond1,Ref(DailyStochD,-1));// 
Plot(sD1,"",1,1);Cond2=Ref(DailyStochD,-1)>70 AND Ref(sD1,-1)>sD1 ;// 
Plot(120*Cond2,"",1,2);Cond3=WeeklyStochD>Ref(WeeklyStochD,-5);// 
Plot(50*Cond3,"",7,1);Div=Cond2 AND 
Cond3;Plot(100*div,"",colorRed,2);Uncomment the intermediate plots to 
see analytically the signals.
 
For the price chart, paste in IB the alternative
TimeFrameSet( inDaily ); sD = StochD(); 
TimeFrameSet( inWeekly ); sW=StochD(); TimeFrameRestore(); 
DailyStochD=TimeFrameExpand( sD, 
inDaily);WeeklyStochD=TimeFrameExpand(sW,inWeekly);Cond1=Ref(DailyStochD,-1)==HHV(DailyStochD,3);sD1=ValueWhen(Cond1,Ref(DailyStochD,-1));Cond2=Ref(DailyStochD,-1)>70 
AND Ref(sD1,-1)>sD1 
;Cond3=WeeklyStochD>Ref(WeeklyStochD,-5);Div=Cond2 AND 
Cond3;Plot(C,"Close",colorblack,64);PlotShapes(shapeDownArrow*Div,colorRed);
 
It is quite interesting for partial profit taking before the 
final [if any] divergence between StochD and Price.
My favorite CL gives a more expressive picture.
Dimitris Tsokakis






Yahoo! Groups Sponsor












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



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



Attachment:
1DW.gif

Attachment: Description: "Description: GIF image"