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

[amibroker] Re: Problem with AddToComposite



PureBytes Links

Trading Reference Links




Dimitris,
 
atcFlagResetValues just exactly what it says: resets all bars 
already existing in the composite
back to zero at the start of the scan. It does not delete 
composite ticker, it just assigns zero
to all OHLCVOI fields in all bars that already exist in the 
composite.
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Dimitris 
  Tsokakis 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Wednesday, June 23, 2004 8:53 
  AM
  Subject: [amibroker] Reset action in 
  AddToComposite() function
  
  InAddToComposite( array, "ticker", "field", flags = 
  atcFlagDefaults )description we read
  atcFlagResetValues = 1 - reset values at the 
  beginning of scan (recommended)
   
  Should we delete ANY ~ticker BEFORE a new scan ?What 
  does reset means ?Is it the same if we delete the ~ticker and scan again 
  ?The answer for the last question is not always positive.Example 
  : Step1Let us add ^NDX and ^N225 in WL1, use 
  filter->Define->WL1 and scan with
   
  <FONT 
  size=2>W=IIf(Name()=="^NDX",1,0);AddToComposite(W*O,"~T","O",1);AddToComposite(W*H,"~T","H",1);AddToComposite(W*L,"~T","L",1);AddToComposite(W*C,"~T","C",1);AddToComposite(W*V,"~T","V",1);Buy=0;
   
  The graph of ~T is in the att. gif.[upper graph]There 
  are some zero bars, point A for example [May31, 2004]The last day of May 
  was a trading day for ^N225 but not for ^NDX !Since we scan for all 
  quotations, ~T should be zero for 31/5/2004 and it is 
  OK.Step2Let us scan again now [without deleting the ~T ticker] 
  , selecting ^NDX as the current stock. Point A will still be there, the 
  "reset" action could not do anything for 31/5/2004, since this day was not an 
  ^NDX day.[the conclusion of step 2 is confusing at first sight, ~T do 
  exist for 31/5/2004 although ^NDX was not there !!]Step3Let us 
  delete ~T ticker, select ^NDX as the current stock and scan again.The 
  result is a perfect ^NDX chart, no "A" points at all.[lower 
graph]
   
  In similar cases, when missing or excessive data creates "A" 
  points, the reset operation is not the expected and it is more safe to delete 
  ~T tickers before a new scan.I also think it should be explained in some 
  next Users guide, AddToComposite() is a great tool and its description should 
  be crystal clear !!Dimitris TsokakisCheck 
  AmiBroker web page at:<A 
  href="">http://www.amibroker.com/Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  


Check AmiBroker web page at:
http://www.amibroker.com/

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.