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

[amibroker] Re: using accutrack



PureBytes Links

Trading Reference Links

Bill,

I can not thank you enough!

Best,

Bob

--- In amibroker@xxxxxxxxxxxxxxx, "Bill Barnard" <wbarnard@xxxx> 
wrote:
>  
> > Any chance you can walk me through how to set the page up so it 
> > displays the accutrack indicator properly?  It will get me started
> on 
> > the right foot.
> > 
> > Best regards,
> > 
> > Bob
> 
> Bob,
> 
> Assuming you are talking about FastTrack's AccuTrack, copy the
> following into the AmiBroker formula editor window and then click on
> the toolbar icon which looks like an envelope (toward the right end 
of
> the toolbar).
> 
> // ----------- start code -----------
> 
>   /* 	AccuTrack as calculated by FastTrack 
> 	coded by Bill Barnard, 8/28/03 	*/
> 
> SetChartOptions(0, chartShowDates);
> 
> fnd = "NDX-X";
> ind = "SP-CP";
> fund 	= Foreign(fnd, "Close");
> index 	= Foreign(ind, "Close");
> fast 	= 12;
> slow 	= 48;
> 
> RawAT 	= EMA((EMA(ROC(fund,1), slow) - 
> 	EMA(ROC(index,1), slow)),fast); 
> VisibleAT = Status("barvisible")*RawAT;
> Hi = LastValue(Highest(VisibleAT));
> Lo =  LastValue(Lowest(VisibleAT));
> multiplier = IIf(Hi > Lo, 100 / Hi, 100 / Lo);
> FastTrackAT = multiplier*RawAT;
> 
> Plot(FastTrackAT, "AccuTrack", colorYellow, 
> 	styleHistogram | styleThick);
> GraphXSpace = 5;
> 
> Title = "    "+Date()+
> 	"  \\c42    FastTrack AccuTrack of "+
> 	fnd+" / "+ind+
> 	"  = "+WriteVal(FastTrackAT, 1.2)+"    ";
> 
> // ------------ end code --------------
> 
> Enjoy Amibroker,
> Bill





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Help tsunami villages rebuild at GlobalGiving. The real work starts now.
http://us.click.yahoo.com/njNroD/KbOLAA/cosFAA/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/