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

Re: [amibroker] Re: Running stats



PureBytes Links

Trading Reference Links

Not sure of your total requirements, but read all the ATCs you created and 
then treat them just like any other variable

Up4 = Foreign("~Name....)   // Read ATC
Up5 = Foreign("~Name...)
etc
count = Foreign("~Name...)

Total = Up4 + Up5 + ...        // Do calculations

Total_percent = Total / count * 100;
Up4_percent  = Up4 / Count * 100;

Filter = ....                              // Create exploration  list




----- Original Message ----- 
From: "marketmonk777" <RedEyes777@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, October 21, 2008 9:33 AM
Subject: [amibroker] Re: Running stats


> That part I get, how do I add ATC1 through ATC10?
> And then what do I do to create a new variable which holds the % of
> stocks for each catagory?
>
> Like 4P = (ATC1) divided by (Total of ATCs)
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Ara Kaloustian" <ara1@xxx> wrote:
>>
>> MM
>>
>> ATC are ok to use in AA ... the same way I indicated before ...
>> 4UP = your condition1;
>> 5UP = your condition2;
>> etc
>>
>> if (your condition fir 4UP)
>> {
>> ATC1(4Up,"~name1",....)
>> }
>> //
>> if (your condition fir 5UP)
>> {
>> ATC2(5Up,"~name2",....)
>> }
>> ...
>> if (condition1 or condition2 or .....)
>> {
>> ATCx(1,"~Namex",...);   // this will count the total number of
> conditions
>> met
>> }
>>
>> ----- Original Message ----- 
>> From: "marketmonk777" <RedEyes777@xxx>
>> To: <amibroker@xxxxxxxxxxxxxxx>
>> Sent: Tuesday, October 21, 2008 12:42 AM
>> Subject: [amibroker] Re: Running stats
>>
>>
>
>
>
> ------------------------------------
>
> **** IMPORTANT ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
>
> *********************
> TO GET TECHNICAL 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
>
>
>


------------------------------------

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL 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/