PureBytes Links
Trading Reference Links
|
<span lang=EN-AU
>Try this to create composite with the last day just
being equal to previous close price and zero volume. Quote editor will allow to
enter the numbers.
<span lang=EN-AU
>
<font size=2 color=green
face="Courier New">// CREATE COMPOSITE WITH LAST DAY NOT ENTERED
<font size=2 color=green
face="Courier New">//USE SCAN BUTTON TO CREATE COMPOSITE, THEN QUOTE EDITOR TO ENTER
THE LAST Day MANUALLY
<font size=2 color=black
face="Courier New">
<font size=2 color=red
face="Courier New">O<span
lang=EN-AU > = <font
size=2 color=blue face="Courier New">IIf<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()==<font
size=2 color=blue face="Courier New">LastValue<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()),<font
size=2 color=blue face="Courier New">Ref<font size=2
color=black face="Courier New">(<font size=2 color=red
face="Courier New">C<span
lang=EN-AU >,-<font
size=2 color=fuchsia face="Courier New">1<font size=2
color=black face="Courier New">),<font size=2 color=red
face="Courier New">O<span
lang=EN-AU >);
<font size=2 color=red
face="Courier New">H<span
lang=EN-AU > = <font
size=2 color=blue face="Courier New">IIf<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()==<font
size=2 color=blue face="Courier New">LastValue<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()),<font
size=2 color=blue face="Courier New">Ref<font size=2
color=black face="Courier New">(<font size=2 color=red
face="Courier New">C<span
lang=EN-AU >,-<font
size=2 color=fuchsia face="Courier New">1<font size=2
color=black face="Courier New">),<font size=2 color=red
face="Courier New">H<span
lang=EN-AU >);
<font size=2 color=red
face="Courier New">L<span
lang=EN-AU > = <font
size=2 color=blue face="Courier New">IIf<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()==<font
size=2 color=blue face="Courier New">LastValue<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()),<font
size=2 color=blue face="Courier New">Ref<font size=2
color=black face="Courier New">(<font size=2 color=red
face="Courier New">C<span
lang=EN-AU >,-<font
size=2 color=fuchsia face="Courier New">1<font size=2
color=black face="Courier New">),<font size=2 color=red
face="Courier New">L<span
lang=EN-AU >);
<font size=2 color=red
face="Courier New">C<span
lang=EN-AU > = <font
size=2 color=blue face="Courier New">IIf<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()==<font
size=2 color=blue face="Courier New">LastValue<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()),<font
size=2 color=blue face="Courier New">Ref<font size=2
color=black face="Courier New">(<font size=2 color=red
face="Courier New">C<span
lang=EN-AU >,-<font
size=2 color=fuchsia face="Courier New">1<font size=2
color=black face="Courier New">),<font size=2 color=red
face="Courier New">C<span
lang=EN-AU >);
<font size=2 color=red
face="Courier New">V<span
lang=EN-AU > = <font
size=2 color=blue face="Courier New">IIf<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()==<font
size=2 color=blue face="Courier New">LastValue<font size=2
color=black face="Courier New">(<font size=2 color=blue
face="Courier New">DateNum<span
lang=EN-AU >()),<font
size=2 color=fuchsia face="Courier New">0<font size=2
color=black face="Courier New">,<font size=2 color=red
face="Courier New">V<span
lang=EN-AU >);
<font size=2 color=black
face="Courier New">
<font size=2 color=green
face="Courier New">//Automatic inclusion of ticker code
<font size=2 color=black
face="Courier New">xyz = <font size=2 color="#cc4466"
face="Courier New">"~"<font size=2 color=black
face="Courier New"> + <span
lang=EN-AU >Name<font
size=2 color=black face="Courier New">();
<font size=2 color=black
face="Courier New">
<font size=2 color=red
face="Courier New">Buy<span
lang=EN-AU >=<font
size=2 color=fuchsia face="Courier New">0<font size=2
color=black face="Courier New">;
<font size=2 color=blue
face="Courier New">AddToComposite<font size=2 color=black
face="Courier New">(<span
lang=EN-AU >H<font
size=2 color=black face="Courier New">,xyz,<font size=2
color="#cc4466" face="Courier New">"H"<font
size=2 color=black face="Courier New">);
<font size=2 color=blue
face="Courier New">AddToComposite<font size=2 color=black
face="Courier New">(<span
lang=EN-AU >L<font
size=2 color=black face="Courier New">,xyz,<font size=2
color="#cc4466" face="Courier New">"L"<font
size=2 color=black face="Courier New">);
<font size=2 color=blue
face="Courier New">AddToComposite<font size=2 color=black
face="Courier New">(<span
lang=EN-AU >O<font
size=2 color=black face="Courier New">,xyz,<font size=2
color="#cc4466" face="Courier New">"O"<font
size=2 color=black face="Courier New">);
<font size=2 color=blue
face="Courier New">AddToComposite<font size=2 color=black
face="Courier New">(<span
lang=EN-AU >C<font
size=2 color=black face="Courier New">,xyz,<font size=2
color="#cc4466" face="Courier New">"C"<font
size=2 color=black face="Courier New">);
<font size=2 color=blue
face="Courier New">AddToComposite<font size=2 color=black
face="Courier New">(<span
lang=EN-AU >V<font
size=2 color=black face="Courier New">,xyz,<font size=2
color="#cc4466" face="Courier New">"V"<font
size=2 color=black face="Courier New">);
<font size=2 color=black
face="Courier New">
<span lang=EN-AU
>
<span lang=EN-AU
>Cheers,
<span lang=EN-AU
>Graham
<span lang=EN-AU
>
<span lang=EN-AU
>
-----Original Message-----
From: BillBarack <wbarack@xxxxxxxxx> [mailto:wbarack@xxxxxxxxx]
Sent: Wednesday, 5 February 2003 4:30 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Creating an artifical security.
<span lang=EN-AU
>
<span lang=EN-AU
>Help! I want to be able to create a security that has
all data
<span lang=EN-AU
>shifted back in time by one day and then be able to
put in my best
<span lang=EN-AU
>guess for the final day's data.
<span lang=EN-AU
>
<span lang=EN-AU
>Shifting can be done, I think, using the ref function.
<span lang=EN-AU
>
<span lang=EN-AU
>Dummy = ref(original security,-1)
<span lang=EN-AU
>
<span lang=EN-AU
>But how can I plug in the final days data. I can't
quite figure that
<span lang=EN-AU
>one out. Any great ideas out there?
<span lang=EN-AU
>
<span lang=EN-AU
>Bill
<span lang=EN-AU
>
<span lang=EN-AU
>
<span lang=EN-AU
>Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx
<span lang=EN-AU
>(Web page:
http://groups.yahoo.com/group/amiquote/messages/)
<span lang=EN-AU
>
<span lang=EN-AU
>Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
<span lang=EN-AU
>
<span lang=EN-AU
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
<span lang=EN-AU
>
Yahoo! Groups Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|