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

[amibroker] Re: watch list question



PureBytes Links

Trading Reference Links

Yuki,
I donīt understand this "by hand", but here is an example
SetForeign("MSFT");
C1=Close;
Plot(C1,"A",1,1);
SetForeign("INTC");
C2=Close;
Plot(C2,"B",2,1);Plot(0,"",1,1);Plot(C1-C2,"A-B",4,2);

to automatically plot the MSFT/INTC difference.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, Yuki Taga <yukitaga@xxxx> wrote:
> I'm getting interested in adding a couple of pairs to the one pair
> that I have been trading for years.  The current pair has two
> artificial "stocks" in the MS database, which I update by hand each
> day.  One artificial stock simply plots the daily raw price
> difference of A versus B, and the other one plots the percentage
> difference.
> 
> It's not too much trouble to update this one pair by hand each day,
> but if I'm going to add more pairs, I'd like to know if anyone has
> any ideas on how this could be done automatically, via AFL, or even
> if that is possible.  Particularly, I'd like to setup proxies as I
> have, and actually be able to look at charts with standard deviation
> lines on them.  Is it possible for AB to fill in the "prices" of an
> artificial stock each day, using real prices that I would enter for
> the underlying pair?
> 
> Yuki



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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 
Yahoo! Groups Links

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

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