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

Re: [amibroker] Amiquote AHD files



PureBytes Links

Trading Reference Links




There is an interesting type of divergence, when the weekly 
stochastic is still ascending and the daily Stochastic is descending.For 
Stochastic values above 70 it is a warning for a probable change of the 
trend.For the whole N100 market the value of the respective composite ticker 
D_W_StBear was 14.9 for Jan22, highest since Dec3, 2002.Scan all N100 
stocks, all quotations with
// Daily-Weekly Stochastic 
Divergences 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);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(100*div,"",colorRed,2);Cond11=Ref(DailyStochD,-1)==LLV(DailyStochD,3);sD11=ValueWhen(Cond11,Ref(DailyStochD,-1));Cond21=Ref(DailyStochD,-1)<30 
AND Ref(sD11,-1)<sD11 
;Cond31=WeeklyStochD<Ref(WeeklyStochD,-5);Div1=Cond21 AND 
Cond31;Plot(100*div1,"",colorBrightGreen,2);Filter=Div;AddColumn(C,"");AddToComposite(Div,"~D-W 
StBear","v");AddToComposite(Div1,"~D-W 
StBull","v");AddToComposite(1,"~count","V");Buy=0;
 
and then plot in IB the 
 
 D_W_StBear=100*Foreign("~D-W 
StBear","v")/Foreign("~count","v");D_W_StBull=100*Foreign("~D-W 
StBull","v")/Foreign("~count","v");Plot(D_W_StBear,"D_W_StBear",colorRed,1);Plot(D_W_Stbull,"D_W_StBull",colorBrightGreen,1);
 
Dimitris Tsokakis


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 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:
1DWdiv.gif

Attachment: Description: "Description: GIF image"