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

Re: [amibroker] Interactive plots of composite "internals"



PureBytes Links

Trading Reference Links

You can do it all in one scan, but not really interactively.

Just change the parameter of your MA and rerun the code and save data in a
different ATC. You can do it in a loop with as many MA parameters as you
want.

Then you can plot both ATC on one chart for comarison

----- Original Message -----
From: "timgadd" <timgadd@xxxxxxcom>
To: <amibroker@xxxxxxxxxps.com>
Sent: Thursday, March 15, 2007 2:51 PM
Subject: [amibroker] Interactive plots of composite "internals"

>I have an atc scan and associated plot (afl below) that calculates
> the % of stocks in a group which are above a moving average. The ma
> periods can be changed prior to running the atc scan using Param. I
> assume that the closest i can get to having an interactively-changing
> plot is to run a scan for each ma period that i want to investigate.
> Is this correct?
>
> In other words, if i want to plot the % of stocks in a group which
> are above a 26 period ma instead of a 50 period ma, i need to run
> another atc scan, right?
>
> tia,
>
> Tim
>
> ////////////////////////////////////////
>
> Filter=1;
> Buy=Sell=Short=Cover=0;
>
> MAPeriods = Param("Bars for B% MA", 50, 1, 252, 1);
>
> Count = IIf(C > MA(C, MAPeriods), 1, 0);
>
> sym = "~" + SectorID(1) + " Above MA";
> AddToComposite(Count, sym,"C");
> AddToComposite(1, sym,"I");
>
> Bpct= (Foreign("~REAL ESTATE Above MA", "C") / Foreign("~REAL ESTATE
> Above MA", "I"))*100 ;
> // I'll eventually attempt to change the line above to use the
> currently-displayed composite instead of a specific one
>
> Plot(Bpct, "Bullish %", colorBlack, styleLine);
>
>
>
>
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
>
>
>

__._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___