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

Re: [amibroker] Re: Stuck in a loop



PureBytes Links

Trading Reference Links

You attach or insert a picture into the e-mail sent to the forum just as you do with any other e-mail.  See your e-mail program help for specific instructions.
 
Bill
 
----- Original Message -----
From: "eric tao" <erichtao@xxxxxxxxx>
Sent: Tuesday, June 12, 2007 4:07 PM
Subject: [amibroker] Re: Stuck in a loop

> Hi Bill,
>
> Sorry to interrupt, but how do you attach a picture in to this forum?
>
> Eric
>
> --- In
amibroker@xxxxxxxxxxxxxxx, "wavemechanic" <fimdot@xxx> wrote:
>>
>> To get the date column just add addcolumn(datenum(), ... ) to your
> code (or first convert to any date format that you like).
>>
>> As for only getting the last bar, I don't know what is going on
> because I get all bars just as you indicated that you want.  Must be
> something to do with your settings.
>>
>> Here is a screen shot of what I get with datenum() included showing
> decreasing dates from 6/8/07:
>>
>>
>>
>> Bill
>>
>>   ----- Original Message -----
>>   From: OptionTed
>>   To:
amibroker@xxxxxxxxxxxxxxx
>>   Sent: Monday, June 11, 2007 10:47 AM
>>   Subject: Re: [amibroker] Stuck in a loop
>>
>>
>>   Bill thanks again
>>
>>   What I am trying to do is create a HISTORICAL column of the price
> change/day  of a SINGLE stock.
>>   e.g 
>>     DATE             .........    Price change
>>    8    June 2007  .........    24p
>>    7    June 2007  .........    34p   etc.
>>
>>   Going back in history.
>>
>>   The code presently gives only the last bar's PriceChange.
>>
>>   Regards Ted
>>
>>   PS The "current symbol"  is selected on the AA since I want that
> stock analyzed.
>>
>>
>>
>>     ----- Original Message -----
>>     From: wavemechanic
>>     To:
amibroker@xxxxxxxxxxxxxxx
>>     Sent: Monday, June 11, 2007 1:24 PM
>>     Subject: Re: [amibroker] Stuck in a loop
>>
>>
>>
>>     If by tabulate you mean to list the change then the code does
> that.  If you mean a running total of the changes then use ---
>>
>>     filter = ...;
>>     pricechange = ...;
>>     totalpricechange = cum(pricechange);
>>     addcolumn(pricechange, ...);
>>     addcolumn(totalpricechange, ...);
>>
>>     Bill
>>       ----- Original Message -----
>>       From: OptionTed
>>       To:
amibroker@xxxxxxxxxxxxxxx
>>       Sent: Monday, June 11, 2007 6:52 AM
>>       Subject: Re: [amibroker] Stuck in a loop
>>
>>
>>       Thank you Bill and Graham for your response.
>>
>>       Unfortunately the code you provided partly helps my task.
>>
>>       I need to tabulate (addcolumn) historical price change of a
> single stock using "Explore/Current Symbol within AA.
>>       Charting of this information works great.
>>
>>       Thanks again for your help
>>       Regards
>>
>>
>>
>>
>>
>>         ----- Original Message -----
>>         From: Graham
>>         To:
amibroker@xxxxxxxxxxxxxxx
>>         Sent: Monday, June 11, 2007 1:49 AM
>>         Subject: Re: [amibroker] Stuck in a loop
>>
>>
>>         Just explore over the bars/dates you want
>>         PriceChange = C - O;
>>         filter=1;
>>         AddColumn(PriceChange, " Price Range ", 1, colorRed);
>>
>>         --
>>         Cheers
>>         Graham
>>         AB-Write >< Professional AFL Writing Service
>>         Yes, I write AFL code to your requirements
>>        
http://www.aflwriting.com
>>
>>         On 11/06/07, ted <optionted@xxx> wrote:
>>         > Hello all
>>         >
>>         > Is it possible to display the historical price change of a
> single
>>         > stock.
>>         > Unable to loop out this information from the array.
>>         >
>>         >
>>         > Thanking in anticipation
>>         >
>>         >
>>         >
>>         >
>>         > Filter = 1;
>>         >
>>         > //--------------------------------------------------
>>         >
>>         > DayO = O;
>>         > DayC = C;
>>         >
>>         > MyArray[1]=0;
>>         >
>>         > for (i=1; i<=LastValue(BarIndex()); i++)
>>         > {
>>         >
>>         > PriceChange[i] = DayC[i] - DayO[i];
>>         >
>>         > }
>>         >
>>         > AddColumn(PriceChange, " Price Range ", 1, colorRed);
>>         >
>>         >
>>         >
>>         >
>>         >
>>         > 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
>>         >
>>         >
>>         >
>>         >
>>
>>
>>
>>
>>
> --------------------------------------------------------------------------
>>
>>
>>       No virus found in this incoming message.
>>       Checked by AVG Free Edition.
>>       Version: 7.5.472 / Virus Database: 269.8.13/843 - Release
> Date: 6/10/2007 1:39 PM
>>
>>
>>   
>>
>>
>>
> ------------------------------------------------------------------------------
>>
>>
>>   No virus found in this incoming message.
>>   Checked by AVG Free Edition.
>>   Version: 7.5.472 / Virus Database: 269.8.13/843 - Release Date:
> 6/10/2007 1:39 PM
>>
>
>
>
>
> 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/

>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.472 / Virus Database: 269.8.15/845 - Release Date: 6/12/2007 6:39 AM
>
>
__._,_.___

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

__,_._,___