PureBytes Links
Trading Reference Links
|
Hello!
This is probable a dumb question and I'm overlooking something basic. I'm
trying to create a "new" equity by combining the German DAX (calculated until
17:45) and the XDAX available since spring 2006 (which is calculated until
22:00 based on the DAX future adjusted by the Euribor).
I use the following code (where 846900 is the DAX and A0C4CA is the XDAX):
Filter=InWatchList(64);
AddToComposite(Foreign("846900","o"),"~MyDAX","O",3);
AddToComposite(IIf(IsEmpty(Foreign("A0C4CA","h")),Foreign("846900","h"),Max(Foreign("846900","h"),Foreign("A0C4CA","h"))),"~MyDAX","h",3);
AddToComposite(IIf(IsEmpty(Foreign("A0C4CA","l")),Foreign("846900","l"),Min(Foreign("846900","l"),Foreign("A0C4CA","l"))),"~MyDAX","l",3);
AddToComposite(IIf(IsEmpty(Foreign("A0C4CA","c")),Foreign("846900","c"),Foreign("A0C4CA","c")),"~MyDAX","c",3);
Buy=Sell=Cover=Short=0;
... but the prices of both indexes are added up (since spring 2006) which is
not what I want, of course. (It did work, however, when I used equivalent
formulas in an indicator with PlotOHLC(...) ).
Do you have any idea how to overcome this problem?
Greetings, Thomas
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/
|