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

RE: [amibroker] Creating an artifical security.



PureBytes Links

Trading Reference Links




You're 
on a roll there, Graham!! My net connection got hosed and when it came back in 
checked and you're having a marvelous chat with yourself!! Sorry I was here to 
participate.  Thanks VERY much for your effort on this! I'll jump in and 
try it out..
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>d

  
  <FONT 
  face=Tahoma size=2>-----Original Message-----From: Graham 
  [mailto:gkavanag@xxxxxxxxxxxxxx] Sent: Tuesday, February 04, 2003 
  7:43 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: 
  [amibroker] Creating an artifical security.
  
  <SPAN 
  >Once set up, try this 
  code, great to see effects of price on the indicators
  <SPAN 
  lang=EN-AU 
  >xo = 
  <SPAN lang=EN-AU 
  >LastValue<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Ref<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >O<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,-<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >));
  <SPAN lang=EN-AU 
  >O<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  > = 
  <SPAN lang=EN-AU 
  >IIf<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()==<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >LastValue<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()),<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Param<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
  >"O"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,xo,xo-<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >10<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,xo+<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >10<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >),<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >O<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >);
  <SPAN 
  lang=EN-AU 
  >xh = 
  <SPAN lang=EN-AU 
  >LastValue<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Ref<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >H<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,-<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >));
  <SPAN lang=EN-AU 
  >H<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  > = 
  <SPAN lang=EN-AU 
  >IIf<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()==<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >LastValue<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()),<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Param<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
  >"H"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,xh,xh-<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >10<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,xh+<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >10<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >),<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >H<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >);
  <SPAN 
  lang=EN-AU 
  >xl= 
  <SPAN lang=EN-AU 
  >LastValue<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Ref<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >L<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,-<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >));
  <SPAN lang=EN-AU 
  >L<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  > = 
  <SPAN lang=EN-AU 
  >IIf<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()==<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >LastValue<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()),<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Param<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
  >"L"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,xl,xl-<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >10<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,xl+<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >10<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >),<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >L<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >);
  <SPAN 
  lang=EN-AU 
  >xc = 
  <SPAN lang=EN-AU 
  >LastValue<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Ref<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >C<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,-<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >));
  <SPAN lang=EN-AU 
  >C<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  > = 
  <SPAN lang=EN-AU 
  >IIf<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()==<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >LastValue<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()),<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Param<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
  >"C"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,xc,xc-<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >10<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,xc+<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >10<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >),<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >C<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >);
  <SPAN 
  lang=EN-AU 
  > 
  <SPAN lang=EN-AU 
  >Plot<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >( 
  <SPAN lang=EN-AU 
  >EMA<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  > 
  (<SPAN lang=EN-AU 
  >C<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >10<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >),<FONT 
  face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
  >"EMA"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >colorBlue<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >styleLine<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >);
  <SPAN lang=EN-AU 
  >Plot<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >C<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
  >"chart"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >colorBlack<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >styleCandle<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >);
  <SPAN lang=EN-AU 
  >Plot<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >StochD<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >14<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >),<FONT 
  face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
  >"stochD"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >colorGreen<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >styleLine<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >+<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >styleOwnScale<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >);
  <SPAN lang=EN-AU 
  >Plot<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >StochK<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >14<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >),<FONT 
  face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
  >"stochK"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >colorRed<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >styleLine<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >+<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >styleOwnScale<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >);
  
  
  <SPAN 
  >Cheers,
  <SPAN 
  >Graham
  <SPAN 
  > 
  <SPAN 
  >-----Original 
  Message-----From: Graham 
  [mailto:gkavanag@xxxxxxxxxxxxxx] <SPAN 
  >Sent: Wednesday, 5 February 2003 8:02 
  AMTo: 
  amibroker@xxxxxxxxxxxxxxx<SPAN 
  >Subject: RE: [amibroker] Creating an 
  artifical security.
  <FONT face="Times New Roman" 
  size=3> 
  <FONT face=Arial color=navy 
  size=2>Create 
  the composite thus:
  <FONT face="Courier New" 
  color=green size=2><SPAN lang=EN-AU 
  >// CREATE 
  COMPOSITE WITH LAST DAY NOT ENTERED BEING SEEN AS TOMORROW
  <FONT face="Courier New" 
  color=green size=2><SPAN lang=EN-AU 
  >//USE SCAN 
  BUTTON TO CREATE COMPOSITE, THEN GO TO THE INDICATOR BELOW AND USE THE PARAM 
  TO CHANGE LAST DAYS CLOSE PRICE
  <FONT face="Courier New" 
  color=black size=2><SPAN lang=EN-AU 
  > 
  <FONT face="Courier New" 
  color=red size=2><SPAN lang=EN-AU 
  >O<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  > = 
  <SPAN lang=EN-AU 
  >IIf<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()==<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >LastValue<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()),<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Ref<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >C<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,-<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >),<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Ref<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >O<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >));
  <FONT face="Courier New" 
  color=red size=2><SPAN lang=EN-AU 
  >H<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  > = 
  <SPAN lang=EN-AU 
  >IIf<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()==<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >LastValue<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()),<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Ref<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >C<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,-<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >),<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Ref<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >H<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >));
  <FONT face="Courier New" 
  color=red size=2><SPAN lang=EN-AU 
  >L<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  > = 
  <SPAN lang=EN-AU 
  >IIf<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()==<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >LastValue<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()),<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Ref<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >C<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,-<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >),<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Ref<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >L<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >));
  <FONT face="Courier New" 
  color=red size=2><SPAN lang=EN-AU 
  >C<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  > = 
  <SPAN lang=EN-AU 
  >IIf<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()==<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >LastValue<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()),<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Ref<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >C<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,-<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >),<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Ref<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >C<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >));
  <FONT face="Courier New" 
  color=red size=2><SPAN lang=EN-AU 
  >V<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  > = 
  <SPAN lang=EN-AU 
  >IIf<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()==<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >LastValue<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()),<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >0<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Ref<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >V<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >));
  <FONT face="Courier New" 
  color=black size=2><SPAN lang=EN-AU 
  > 
  <FONT face="Courier New" 
  color=green size=2><SPAN lang=EN-AU 
  >//Automatic 
  inclusion of ticker code
  <FONT face="Courier New" 
  color=black size=2><SPAN lang=EN-AU 
  >xyz =  
  <SPAN lang=EN-AU 
  >"~"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  > + 
  <SPAN lang=EN-AU 
  >Name<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >();
  <FONT face="Courier New" 
  color=black size=2><SPAN lang=EN-AU 
  > 
  <FONT face="Courier New" 
  color=red size=2><SPAN lang=EN-AU 
  >Buy<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >=<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >0<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >;
  <FONT face="Courier New" 
  color=blue size=2><SPAN lang=EN-AU 
  >AddToComposite<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >H<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,xyz,<FONT 
  face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
  >"H"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >);
  <FONT face="Courier New" 
  color=blue size=2><SPAN lang=EN-AU 
  >AddToComposite<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >L<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,xyz,<FONT 
  face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
  >"L"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >);
  <FONT face="Courier New" 
  color=blue size=2><SPAN lang=EN-AU 
  >AddToComposite<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >O<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,xyz,<FONT 
  face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
  >"O"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >);
  <FONT face="Courier New" 
  color=blue size=2><SPAN lang=EN-AU 
  >AddToComposite<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >C<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,xyz,<FONT 
  face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
  >"C"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >);
  <FONT face="Courier New" 
  color=blue size=2><SPAN lang=EN-AU 
  >AddToComposite<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >V<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,xyz,<FONT 
  face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
  >"V"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >);
  <FONT face=Arial color=navy 
  size=2><SPAN 
  > 
  <FONT face=Arial color=navy 
  size=2><SPAN 
  > 
  <FONT face=Arial color=navy 
  size=2><SPAN 
  > 
  <FONT face=Arial color=navy 
  size=2>Create 
  the indicator thus (example only using 10 day EMA)
  <FONT face="Courier New" 
  color=black size=2><SPAN lang=EN-AU 
  >x = 
  <SPAN lang=EN-AU 
  >LastValue<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Ref<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >C<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,-<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >));
  <FONT face="Courier New" 
  color=red size=2><SPAN lang=EN-AU 
  >C<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  > = 
  <SPAN lang=EN-AU 
  >IIf<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()==<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >LastValue<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >DateNum<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >()),<FONT 
  face="Courier New" color=blue size=2><SPAN lang=EN-AU 
  >Param<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
  >"C"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,x,x-<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >5<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,x+<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >5<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >),<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >C<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >);
  <FONT face="Courier New" 
  color=blue size=2><SPAN lang=EN-AU 
  >Plot<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >( 
  <SPAN lang=EN-AU 
  >EMA<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  > 
  (<SPAN lang=EN-AU 
  >C<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
  >10<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >),<FONT 
  face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
  >"EMA"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >colorBlue<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >styleLine<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >);
  <FONT face="Courier New" 
  color=blue size=2><SPAN lang=EN-AU 
  >Plot<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >(<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >C<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
  >"chart"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >colorBlack<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >,<FONT 
  face="Courier New" color=red size=2><SPAN lang=EN-AU 
  >styleCandle<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >);
  <FONT face=Arial color=navy 
  size=2><SPAN 
  > 
  
  
  <FONT 
  face="Times New Roman" color=blue size=3><SPAN 
  >Cheers,
  <FONT 
  face="Times New Roman" color=blue size=3><SPAN 
  >Graham
  <FONT face=Arial color=navy 
  size=2><SPAN 
  > 
  <SPAN 
  >-----Original 
  Message-----From: Graham 
  [mailto:gkavanag@xxxxxxxxxxxxxx] <SPAN 
  >Sent: Wednesday, 5 February 2003 6:57 
  AMTo: 
  amibroker@xxxxxxxxxxxxxxx<SPAN 
  >Subject: RE: [amibroker] Creating an 
  artifical security.
  <FONT face="Times New Roman" 
  size=3> 
  <FONT face=Arial color=navy 
  size=2>Just 
  looking at what I sent out, was just some thoughts, about to start trading 
  here, so haven&#8217;t time to test it. But you may also need to builkd in the 
  datenum()==lastvalue(datenum()) into that to define the day to vary the OHLCV. 
  Like a C =param( valuewhen(C, 
  datenum()==lastvalue(datenum()),x,x-5,x+5,1);
  <FONT face=Arial color=navy 
  size=2>Is that 
  the right way round for valuewhen? Anyway hope you get my drift for some 
  fiddling with things
  <FONT face=Arial color=navy 
  size=2><SPAN 
  > 
  
  
  <FONT 
  face="Times New Roman" color=blue size=3><SPAN 
  >Cheers,
  <FONT 
  face="Times New Roman" color=blue size=3><SPAN 
  >Graham
  <FONT face=Arial color=navy 
  size=2><SPAN 
  > 
  <SPAN 
  >-----Original 
  Message-----From: Graham 
  [mailto:gkavanag@xxxxxxxxxxxxxx] <SPAN 
  >Sent: Wednesday, 5 February 2003 6:50 
  AMTo: 
  amibroker@xxxxxxxxxxxxxxx<SPAN 
  >Subject: RE: [amibroker] Creating an 
  artifical security.
  <FONT face="Times New Roman" 
  size=3> 
  <FONT face=Arial color=navy 
  size=2>But 
  seriously folks my best trades have been made using the Hindsight Indicator 
  <SPAN 
  >J
  <FONT face=Arial color=navy 
  size=2><SPAN 
  > 
  <FONT face=Arial color=navy 
  size=2>Try 
  setting the composite OHLCV to = ref(c,1) etc should put all data back one day 
  (probably lose the first days data of the chart)
  <FONT face=Arial color=navy 
  size=2>Then 
  with whatever indicator you use have a param setting for the arrays 
  
  <FONT face=Arial color=navy 
  size=2>Eg 
  
  <FONT face=Arial color=navy 
  size=2><SPAN 
  > 
  <FONT face=Arial color=navy 
  size=2>X = 
  Lastvalue( C )
  <FONT face=Arial color=navy 
  size=2>C = 
  Param(&#8220;C&#8221;,X, X-5,X+5,1);
  <FONT face=Arial color=navy 
  size=2><SPAN 
  > 
  <FONT face=Arial color=navy 
  size=2>Then 
  test your theories
  <FONT face=Arial color=navy 
  size=2><SPAN 
  > 
  
  
  <FONT 
  face="Times New Roman" color=blue size=3><SPAN 
  >Cheers,
  <FONT 
  face="Times New Roman" color=blue size=3><SPAN 
  >Graham
  <FONT face=Arial color=navy 
  size=2><SPAN 
  > 
  <SPAN 
  >-----Original 
  Message-----From: Graham 
  [mailto:gkavanag@xxxxxxxxxxxxxx] <SPAN 
  >Sent: Wednesday, 5 February 2003 6:40 
  AMTo: 
  amibroker@xxxxxxxxxxxxxxx<SPAN 
  >Subject: RE: [amibroker] Creating an 
  artifical security.
  <FONT face="Times New Roman" 
  size=3> 
  <FONT face=Arial color=navy 
  size=2>My code 
  just removes the last bar, but if you are backtesting s system against an 
  indicator, why not use param function to vary the OHLC etc. Next step would be 
  to use that to look at tomorrows prics. Now if I could figure a way to create 
  a composite with tomorrows prices included, then a composite of that witout 
  tomorrows prices, then with the param you could fiddle away, then use the 
  alertif() when you get it right. Next would be to be able to instead of just 
  backtesting on previous data would be for Tomasz to actually build in the 
  ability to go back one day (or one week, whatever) so that we could test the 
  system, return to the start of the trend and place the order in real life. 
  Hey, if they can do it in Back to the Future movie why not in Amibroker 
  <SPAN 
  >J
  <FONT face=Arial color=navy 
  size=2><SPAN 
  > 
  
  
  <FONT 
  face="Times New Roman" color=blue size=3><SPAN 
  >Cheers,
  <FONT 
  face="Times New Roman" color=blue size=3><SPAN 
  >Graham
  <FONT face=Arial color=navy 
  size=2><SPAN 
  > 
  <SPAN 
  >-----Original 
  Message-----From: dingo 
  [mailto:dingo@xxxxxxxxxx] <SPAN 
  >Sent: Wednesday, 5 February 2003 6:33 
  AMTo: 
  amibroker@xxxxxxxxxxxxxxx<SPAN 
  >Subject: RE: [amibroker] Creating an 
  artifical security.
  <FONT face="Times New Roman" 
  size=3> 
  
  <FONT face=Arial color=blue 
  size=2>Neat 
  code Graham!
  
  <FONT face="Times New Roman" 
  size=2> 
  
  <FONT face=Arial color=blue 
  size=2>Now lets 
  say I'd like figure out what price for tomorrow (today in the composite, 
  right?) would cause a buy signal. How can I initialize that price and vary it 
  by .01 up or down until I get a buy or another signal?  
  
  
  <FONT face="Times New Roman" 
  size=2> 
  
  <FONT face=Arial color=blue 
  size=2>That 
  would be soooo very neat!!
  
  <FONT face="Times New Roman" 
  size=2> 
  
  <FONT face=Arial color=blue 
  size=2><SPAN 
  >d
  
    <P class=MsoNormal 
    ><FONT 
    face=Tahoma size=2><SPAN 
    >-----Original 
    Message-----From: Graham 
    [mailto:gkavanag@xxxxxxxxxxxxxx] <SPAN 
    >Sent: Tuesday, February 04, 2003 4:02 
    PMTo: 
    amibroker@xxxxxxxxxxxxxxx<SPAN 
    >Subject: RE: [amibroker] Creating an 
    artifical security.
    <FONT face="Courier New" 
    size=2>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.
    <FONT face="Courier New" 
    size=2> 
    <FONT face="Courier New" 
    color=green size=2><SPAN lang=EN-AU 
    >// CREATE 
    COMPOSITE WITH LAST DAY NOT ENTERED 
    <FONT face="Courier New" 
    color=green size=2><SPAN lang=EN-AU 
    >//USE SCAN 
    BUTTON TO CREATE COMPOSITE, THEN QUOTE EDITOR TO ENTER THE LAST Day 
    MANUALLY
    <FONT face="Times New Roman" 
    size=3> 
    <FONT face="Courier New" 
    color=red size=2><SPAN lang=EN-AU 
    >O<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    > = 
    <SPAN lang=EN-AU 
    >IIf<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >DateNum<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >()==<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >LastValue<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >DateNum<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >()),<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >Ref<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=red size=2><SPAN lang=EN-AU 
    >C<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >,-<FONT 
    face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
    >1<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >),<FONT 
    face="Courier New" color=red size=2><SPAN lang=EN-AU 
    >O<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >);
    <FONT face="Courier New" 
    color=red size=2><SPAN lang=EN-AU 
    >H<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    > = 
    <SPAN lang=EN-AU 
    >IIf<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >DateNum<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >()==<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >LastValue<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >DateNum<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >()),<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >Ref<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=red size=2><SPAN lang=EN-AU 
    >C<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >,-<FONT 
    face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
    >1<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >),<FONT 
    face="Courier New" color=red size=2><SPAN lang=EN-AU 
    >H<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >);
    <FONT face="Courier New" 
    color=red size=2><SPAN lang=EN-AU 
    >L<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    > = 
    <SPAN lang=EN-AU 
    >IIf<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >DateNum<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >()==<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >LastValue<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >DateNum<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >()),<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >Ref<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=red size=2><SPAN lang=EN-AU 
    >C<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >,-<FONT 
    face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
    >1<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >),<FONT 
    face="Courier New" color=red size=2><SPAN lang=EN-AU 
    >L<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >);
    <FONT face="Courier New" 
    color=red size=2><SPAN lang=EN-AU 
    >C<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    > = 
    <SPAN lang=EN-AU 
    >IIf<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >DateNum<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >()==<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >LastValue<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >DateNum<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >()),<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >Ref<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=red size=2><SPAN lang=EN-AU 
    >C<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >,-<FONT 
    face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
    >1<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >),<FONT 
    face="Courier New" color=red size=2><SPAN lang=EN-AU 
    >C<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >);
    <FONT face="Courier New" 
    color=red size=2><SPAN lang=EN-AU 
    >V<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    > = 
    <SPAN lang=EN-AU 
    >IIf<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >DateNum<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >()==<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >LastValue<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=blue size=2><SPAN lang=EN-AU 
    >DateNum<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >()),<FONT 
    face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
    >0<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >,<FONT 
    face="Courier New" color=red size=2><SPAN lang=EN-AU 
    >V<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >);
    <FONT face="Times New Roman" 
    size=3> 
    <FONT face="Courier New" 
    color=green size=2><SPAN lang=EN-AU 
    >//Automatic 
    inclusion of ticker code
    <FONT face="Courier New" 
    color=black size=2><SPAN lang=EN-AU 
    >xyz 
    =  <SPAN 
    lang=EN-AU 
    >"~"<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    > + 
    <SPAN lang=EN-AU 
    >Name<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >();
    <FONT face="Times New Roman" 
    size=3> 
    <FONT face="Courier New" 
    color=red size=2><SPAN lang=EN-AU 
    >Buy<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >=<FONT 
    face="Courier New" color=fuchsia size=2><SPAN lang=EN-AU 
    >0<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >;
    <FONT face="Courier New" 
    color=blue size=2><SPAN lang=EN-AU 
    >AddToComposite<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=red size=2><SPAN lang=EN-AU 
    >H<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >,xyz,<FONT 
    face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
    >"H"<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >);
    <FONT face="Courier New" 
    color=blue size=2><SPAN lang=EN-AU 
    >AddToComposite<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=red size=2><SPAN lang=EN-AU 
    >L<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >,xyz,<FONT 
    face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
    >"L"<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >);
    <FONT face="Courier New" 
    color=blue size=2><SPAN lang=EN-AU 
    >AddToComposite<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=red size=2><SPAN lang=EN-AU 
    >O<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >,xyz,<FONT 
    face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
    >"O"<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >);
    <FONT face="Courier New" 
    color=blue size=2><SPAN lang=EN-AU 
    >AddToComposite<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=red size=2><SPAN lang=EN-AU 
    >C<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >,xyz,<FONT 
    face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
    >"C"<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >);
    <FONT face="Courier New" 
    color=blue size=2><SPAN lang=EN-AU 
    >AddToComposite<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >(<FONT 
    face="Courier New" color=red size=2><SPAN lang=EN-AU 
    >V<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >,xyz,<FONT 
    face="Courier New" color=#cc4466 size=2><SPAN lang=EN-AU 
    >"V"<FONT 
    face="Courier New" color=black size=2><SPAN lang=EN-AU 
    >);
    <FONT face="Times New Roman" 
    size=3> 
    <FONT face="Courier New" 
    size=2> 
    <FONT face="Courier New" 
    size=2>Cheers,
    <FONT face="Courier New" 
    size=2>Graham
    <FONT face="Courier New" 
    size=2> 
    <FONT face="Courier New" 
    size=2> 
    <FONT face="Courier New" 
    size=2>-----Original Message-----From: 
    BillBarack <wbarack@xxxxxxxxx> [mailto:wbarack@xxxxxxxxx] Sent: 
    Wednesday, 5 February 2003 4:30 AMTo: 
    amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Creating an artifical 
    security.
    <FONT face="Courier New" 
    size=2> 
    <FONT face="Courier New" 
    size=2>Help! I want to be able to 
    create a security that has all data 
    <FONT face="Courier New" 
    size=2>shifted back in time by one 
    day and then be able to put in my best 
    <FONT face="Courier New" 
    size=2>guess for the final day's 
    data.
    <FONT face="Courier New" 
    size=2> 
    <FONT face="Courier New" 
    size=2>Shifting can be done, I 
    think, using the ref function.
    <FONT face="Courier New" 
    size=2> 
    <FONT face="Courier New" 
    size=2>Dummy = ref(original 
    security,-1)
    <FONT face="Courier New" 
    size=2> 
    <FONT face="Courier New" 
    size=2>But how can I plug in the 
    final days data. I can't quite figure that 
    <FONT face="Courier New" 
    size=2>one out. Any great ideas out 
    there?
    <FONT face="Courier New" 
    size=2> 
    <FONT face="Courier New" 
    size=2>Bill
    <FONT face="Courier New" 
    size=2> 
    <FONT face="Courier New" 
    size=2> 
    <FONT face="Courier New" 
    size=2>Post AmiQuote-related 
    messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
    <FONT face="Courier New" 
    size=2>(Web page: 
    http://groups.yahoo.com/group/amiquote/messages/)
    <FONT face="Courier New" 
    size=2> 
    <FONT face="Courier New" 
    size=2>Check group FAQ at: 
    http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    
    <FONT face="Courier New" 
    size=2> 
    <FONT face="Courier New" 
    size=2>Your use of Yahoo! Groups is 
    subject to http://docs.yahoo.com/info/terms/ 
    <FONT face="Courier New" 
    size=2> 
    <FONT face="Times New Roman" 
    size=2><FONT 
    face="Courier New" size=2>Post 
    AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
    <SPAN 
    ><FONT 
    face="Courier New">(Web page: <A 
    href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
    face="Courier New">Check group FAQ at: <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<FONT 
    size=2> <FONT 
    face="Courier New" size=2>Your use of Yahoo! 
    Groups is subject to the Yahoo! 
    Terms of Service.<SPAN 
    > 
  <P class=MsoNormal 
  ><FONT 
  face="Times New Roman" size=3><SPAN 
  > 
  <FONT face="Courier New" 
  size=2>Post AmiQuote-related messages ONLY to: 
  amiquote@xxxxxxxxxxxxxxx <FONT face="Courier New" 
  size=2><FONT 
  face="Courier New">(Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
  face="Courier New">Check group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<FONT 
  size=2> <FONT 
  face="Courier New" size=2>Your use of Yahoo! 
  Groups is subject to the Yahoo! 
  Terms of Service.<SPAN 
  > 
  <P class=MsoNormal 
  ><FONT 
  face="Times New Roman" size=3><SPAN 
  > 
  <FONT face="Courier New" 
  size=2>Post AmiQuote-related messages ONLY 
  to: amiquote@xxxxxxxxxxxxxxx <FONT face="Courier New" 
  size=2><FONT 
  face="Courier New">(Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
  face="Courier New">Check group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<FONT 
  size=2> <FONT 
  face="Courier New" size=2>Your use of Yahoo! 
  Groups is subject to the Yahoo! 
  Terms of Service.<SPAN 
  > 
  <P class=MsoNormal 
  ><FONT 
  face="Times New Roman" size=2><SPAN 
  >
  <FONT face="Courier New" 
  size=2>Post AmiQuote-related messages ONLY 
  to: amiquote@xxxxxxxxxxxxxxx <FONT face="Courier New" 
  size=2><FONT 
  face="Courier New">(Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
  face="Courier New">Check group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<FONT 
  size=2> <FONT 
  face="Courier New" size=2>Your use of Yahoo! 
  Groups is subject to the Yahoo! 
  Terms of Service.<SPAN 
  > 
  <FONT face="Times New Roman" 
  size=2>
  <FONT face="Courier New" 
  size=2>Post AmiQuote-related messages ONLY to: 
  amiquote@xxxxxxxxxxxxxxx <FONT face="Courier New" 
  size=2><FONT 
  face="Courier New">(Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
  face="Courier New">Check group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<FONT 
  size=2> <FONT 
  face="Courier New" size=2>Your use of Yahoo! 
  Groups is subject to the Yahoo! 
  Terms of Service.<SPAN 
  > 
  <FONT face="Times New Roman" 
  size=2><SPAN 
  ><FONT 
  face="Courier New" size=2>Post AmiQuote-related 
  messages ONLY to: amiquote@xxxxxxxxxxxxxxx <FONT 
  face="Courier New" size=2><SPAN 
  ><FONT 
  face="Courier New">(Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)<FONT 
  face="Courier New">Check group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<FONT 
  size=2> <FONT 
  face="Courier New" size=2>Your use of Yahoo! 
  Groups is subject to the Yahoo! 
  Terms of Service.<SPAN 
  > 
  Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







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.