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

[amibroker] Trend Detectors 1



PureBytes Links

Trading Reference Links




Jayson,Sorry for the +1 delay but here is a short 
description of some methods to detect the significant trendsA.The 
sqrt(StochD()) for various stochD periodsCreat first the composites 
fromN=80;Y=sqrt(sqrt(StochD(N)*StochD(2*N)*StochD(3*N/2)*StochD(5*N/2)));fast=DEMA(Y,10);N=30;Y=StochD(N)*StochD(2*N)*StochD(3*N/2)*StochD(5*N/2)/10^6;slow=DEMA(Y,10);  
AddToComposite(slow>fast,"~end","v");AddToComposite(slow,"~slow","c");AddToComposite(fast,"~fast","c");AddToComposite(1,"~count","V");Buy=0;and 
then check in ind. builder 
thePlot(100*Foreign("~end","v")/Foreign("~count","v"),"",7,2);//  
k=Foreign("~slow","c")/Foreign("~count","v");kk=Foreign("~fast","C")/Foreign("~Count","V");// 
Plot(EMA(k,10),"SLOW",5,1);Plot(EMA(KK,10),"FAST",1,1);// 
Plot(EMA(KK,10)-EMA(K,10),"",9,2);the first plot gives Fig. trends1. [the 
yellow bars in the middle]compare it with the recent N100 trends, 
it is quite reliable and descriptive[Uncomment the rest 
for further study]
[the upper fig is the
 <FONT 
face="Times New Roman">
N1=80;<FONT face=Verdana 
size=2>// H=C;L=C;// uncomment it for mutual 
funds, the have no H, L values<FONT face=Verdana 
size=2>
F1=StochD(N1)*<FONT 
size=2>StochD(2<FONT 
size=2>*N1)*StochD(<FONT 
size=2>3*N1/2<FONT 
size=2>)*StochD(<FONT 
size=2>5*N1/2<FONT face=Verdana 
size=2>);
F1=sqrt(<FONT 
size=2>sqrt<FONT 
face="Times New Roman">(F1));
N2=30<FONT 
face="Times New Roman">;
F2=StochD(N2)*<FONT 
size=2>StochD(2<FONT 
size=2>*N2)*StochD(<FONT 
size=2>3*N2/2<FONT 
size=2>)*StochD(<FONT 
size=2>5*N2/2<FONT 
size=2>)/10^<FONT 
size=2>6<FONT 
face="Times New Roman">;<FONT 
face="Times New Roman">
Plot(DEMA<FONT 
size=2>(F1,10),<FONT 
size=2>"FAST",1<FONT 
size=2>,8<FONT 
face="Times New Roman">);<FONT 
face="Times New Roman">
Plot(DEMA<FONT 
size=2>(F2,10),<FONT 
size=2>"SLOW",5<FONT 
size=2>,8<FONT 
face="Times New Roman">); 
GraphXSpace=3<FONT face=Verdana 
size=2>;
 
We may also have an idea about the measure [strength] of these 
trends and finally have both, qualitativeand quantitative description for 
the bullish trends and the real bullish/bearish proportion, using a 
simple100*cum(yellowbars!=0)/cum(1). This simple result dictates your 
realistic strategy about Long or Shortmarket intensions. If you see in the 
future the proportion slowly changing for the benefit of bulls, you 
willgradually change your techniques, following the market and not any 
illusions. For the time being, the yellow bars speak better than words. The 
mix of various StochD() periods gives some guarantees thatyou follow a wise 
and cool trading profile [you follow the trend AFTER it is confirmed, you leave 
[please]the trend when it is over]When the yellow bars dissappear, any 
bullish idea is not profitable in the medium term. The market WILLmake 
bullish expansions, the duration WILL BE short. If you are quick and catch some 
minor trends, it is OK, BUT, be ready to pull the trigger ASAP, these quick 
profits are sweet but easily turn to losses !!As long as the yellow bars 
grow up and increase their [uninterrupted] magnitude, it is wise to wait for 
higherprices for the market. Double peaks are also gently described and, in 
general, this tiny indicator will not send you to the opposite direction, 
even if you follow it till the last yellow bar before zero.But, Frankfurt 
opens in 3min, let me see it, I will continue with B.Dimitris 
Tsokakis  
 
  






Yahoo! Groups Sponsor


  ADVERTISEMENT









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:
trends1.gif

Attachment: Description: "Description: GIF image"