[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@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
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
>
>
>



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Transfer from your equities account.  
Receive up to $1,000 from GFT. Click here to learn more.
http://us.click.yahoo.com/aZttyC/X_xQAA/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 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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/