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

[amibroker] Re: ATC Question



PureBytes Links

Trading Reference Links

Try creating composite by SCANNING with;
adv=C>=Ref(C,-1) ; 
dec=C<Ref(C,-1) ; 
noc=C==Ref(C,-1) ; // No Change
AddToComposite(adv,"~adv","X") ;
AddToComposite(dec,"~dec","X") ;
AddToComposite(noc,"~noc","X") ;

Then plot in IB with;
Plot(Foreign("~adv","x"),"",27) ;
Plot(Foreign("~dec","x"),"",4) ;
Plot(Foreign("~noc","x"),"",2) ;

Regds
Gerard


--- In amibroker@xxxxxxxxxxxxxxx, "dmcleod1981" <dmcleod1981@xxxx> 
wrote:
>
> Can I use the Ref function in adding historical data to a composite?
> 
> For example if I want to create a composite of the number of up 
closes
> each day close>Ref(close,-1)?  I don't get any data so my guess is
> that I am either using this wrong or this function can't be used.
> 
> Thanks
> DM
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/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/