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

[amibroker] Re: ASX Setup - dividend adjusted prices



PureBytes Links

Trading Reference Links

Micahel,
some further progress.
I can now write out the datenum field as an exploration on "-Divd".
I made another post on actually adjusting the dividends and posted 
the source, maybe i haven't allowed the thread capability to be 
properly used, so you may need to search.

With ANZ-Divd selected
/*part of dividend adjustment - 
write out Date in comparable format*/
x=StrLeft(Name(),8);
x=StrRight(x,4);
select=x=="DivD";
z=StrLeft(Name(),3);
y=z=="ANZ";
dnow=DateNum();
OI=dnow;

ex=O==1;
/*with my settings ab pads quote value 
until next real quote, so have to drop those */
ex[0]=IIf(O[0]==1,1,0);//unless first bar is a dividend?
ex=IIf(Ref(ex,-1)==1,0,ex);
Filter=select AND y AND ex;
AddColumn(O,"O" ); 
AddColumn(H,"H" ); 
AddColumn(L,"L" ); 
AddColumn(C,"C" );
AddColumn(V,"V" ); 
AddColumn(OI,"OI:= Datenum" );




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/DldnlA/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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:
    http://docs.yahoo.com/info/terms/