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

[amibroker] How to restore the original workspace



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Thanks BM,
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>Trends are mostly classified on duration and direction, the zig is 
based on percentage change. A Long-Term uptrend could have various slopes while 
still have the same Trend classification. The difficulty is what kind of values 
to use for the Zig()... you could base it on volatility.. once you have decided 
on that you could classify the Zig()s into Trend categories on the basis of the 
number of bars the Zig() moves in one direction.
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>You could experiment with the code below to get a feel of what you are 
dealing with. Once you have defined the parameters AB can collect the data for 
you... the problem is really defining the various parameters/criteria, after 
that coding shouldn't be that hard.
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>take care,
<FONT face=Arial color=#0000ff 
size=2>herman
<FONT face=Arial color=#0000ff 
size=2> 
<FONT 
size=3>P1=<FONT 
color=#0000ff>Param(<FONT 
color=#ff00ff>"PeriodZig1",<FONT 
color=#ff00ff>1,<FONT 
color=#ff00ff>1,<FONT 
color=#ff00ff>30,<FONT 
color=#ff00ff>1<FONT 
color=#000000>); Z1 = Zig<FONT 
color=#000000>(<FONT 
color=#ff0000>C<FONT 
face="Courier New">,P1); P2=<FONT 
color=#0000ff>Param(<FONT 
color=#ff00ff>"PeriodZig2",<FONT 
color=#ff00ff>2,<FONT 
color=#ff00ff>1,<FONT 
color=#ff00ff>30,<FONT 
color=#ff00ff>1<FONT 
color=#000000>); Z2= Zig<FONT 
color=#000000>(<FONT 
color=#ff0000>C<FONT 
face="Courier New">,P2); P3=<FONT 
color=#0000ff>Param(<FONT 
color=#ff00ff>"Periodzig3",<FONT 
color=#ff00ff>3,<FONT 
color=#ff00ff>1,<FONT 
color=#ff00ff>30,<FONT 
color=#ff00ff>1<FONT 
color=#000000>); Z3= Zig<FONT 
color=#000000>(<FONT 
color=#ff0000>C<FONT 
face="Courier New">,P3); <FONT 
color=#0000ff>Plot(<FONT 
color=#ff0000>C,<FONT 
color=#ff00ff>"Close",<FONT 
color=#ff00ff>1,<FONT 
color=#ff00ff>1|<FONT 
color=#ff00ff>4<FONT 
color=#000000>); Plot<FONT 
color=#000000>(Z1,"ZigRed"<FONT 
color=#000000>,4<FONT 
color=#000000>,1<FONT 
size=3>); <FONT 
color=#0000ff>Plot(Z2,<FONT 
color=#ff00ff>"ZigGreen",<FONT 
color=#ff00ff>5,<FONT 
color=#ff00ff>1<FONT 
color=#000000>); Plot<FONT 
color=#000000>(Z3,"ZigYellow"<FONT 
color=#000000>,7<FONT 
color=#000000>,1<FONT 
color=#000000>); 

<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2> 

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: bm 
  [mailto:groups@xxxxxxxxxxxx]Sent: January 14, 2004 3:58 
  PMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker] 
  Sperandeo's ideaHerman vandenBergen 
  wrote:> *What definition of "Trend" does he use?*> ** 
  > *herman*According to definitions in his book:*Trends* 
  -- three kinds; short-term (days->weeks), medium-term 
  (weeks->months), long-term (months->years). all trends are active at 
  the same time and can be at opposite directions.*UP Trend* -- 
  longterm; higher mediumterm tops, higher mediumterm lows.*DOWN Trend* -- 
  longterm; lower medium-term tops, lower medium-term lows.*Primary swing* 
  -- medium-term; at the same direction as *UP trend**Correction* -- 
  medium-term; significant medium-term move opposite to *UP trend*; usually 
  33-67%.moreover:1) both DJIA and DITA must go through their last 
  lows/highs in order to say "trend has changed" (dow jones theory)2) 
  *confirmation day* -- the day when the second index confirms change of 
  trend; mediumterm move; new trend begins.using these definitions he 
  made statistical distributions of trend's duration and range.to do 
  this I thought that zigzag with would be appropriate with different 
  settings for medium moves and long term 
  moves.cheers,BMSend BUG REPORTS to 
  bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  
  
  Yahoo! Groups Links
  
    To visit your group on the web, go to:<A 
    href="">http://groups.yahoo.com/group/amibroker/  

    To unsubscribe from this group, send an email to:<A 
    href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx  

    Your use of Yahoo! Groups is subject to the <A 
    href="">Yahoo! Terms of Service. 
  


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.