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

RE: [amibroker] Static variables



PureBytes Links

Trading Reference Links

Hi Dennis,

Often you can use the AddToComposite() to save values and arrays on HD for
later recall. For code examples and a possible solution see
http://www.amibroker.net/3rdparty/IntroToAtc.pdf and look under the topic
"Using the Atc to create Static storage space".

Best regards,
Herman

> -----Original Message-----
> From: metzdennis [mailto:Dennis.Metz@x...]
> Sent: 20 October, 2002 5:57 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Static variables
>
>
> Hi group
>
> I want to compare the relative strength of a stock with the entire
> market (in my case the S&p 500 or ^gspc).
>
> The formula below plots the S&P and the current stock. Furthermore I
> want to set the current close of the s&p equal to the close of the
> stock. This should be a static number, but instead the "divider" gets
> recalculated every time.
>
> divider=Foreign("^gspc","C")/Close;
> zeitreihe=Foreign("^gspc","C")/divider;
> Plot(zeitreihe, "S&P", 1);
> Plot(Close,"", colorBlack, 64);
>
> All I want is a chart, where the current stock and the modified S&P
> [(last close of S&P)/(last close of stock) * (historic close of s&P)]
> is plotted. But I simply can not get this to work because the divider
> ist recalculated for every date.
>
> Thanks for your help,
> Dennis
>
>
>
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
>
> Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/