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

RE: TS2k LastBarOnChart??



PureBytes Links

Trading Reference Links

Works.  Set maxbarsback on the indicator code to 100 from 50.  Run it and it
generates this output.

      0.00   4430.00   1011210.00   1011210.00       1630.00       1630.00
      1.00   4430.00   1011210.00   1011210.00       1630.00       1630.00
      2.00   4430.00   1011210.00   1011210.00       1630.00       1630.00
      3.00   4430.00   1011210.00   1011210.00       1630.00       1630.00
      4.00   4430.00   1011210.00   1011210.00       1630.00       1630.00
      5.00   4430.00   1011210.00   1011210.00       1630.00       1630.00
      6.00   4430.00   1011210.00   1011210.00       1630.00       1630.00
      7.00   4430.00   1011210.00   1011210.00       1630.00       1630.00
      8.00   4430.00   1011210.00   1011210.00       1630.00       1630.00
      9.00   4430.00   1011210.00   1011210.00       1630.00       1630.00
     10.00   4430.00   1011210.00   1011210.00       1630.00       1630.00

Put it back to AutoDetect and run it and it does this:

      0.00   4529.00   1011210.00   1011210.00       1630.00       1630.00
      1.00   4529.00   1011210.00   1011210.00       1630.00       1630.00
      2.00   4529.00   1011210.00   1011210.00       1630.00       1630.00
      3.00   4529.00   1011210.00   1011210.00       1630.00       1630.00
      4.00   4529.00   1011210.00   1011210.00       1630.00       1630.00
      5.00   4529.00   1011210.00   1011210.00       1630.00       1630.00
      6.00   4529.00   1011210.00   1011210.00       1630.00       1630.00
      7.00   4529.00   1011210.00   1011210.00       1630.00       1630.00
      8.00   4529.00   1011210.00   1011210.00       1630.00       1630.00
      9.00   4529.00   1011210.00   1011210.00       1630.00       1630.00
     10.00   4529.00   1011210.00   1011210.00       1630.00       1630.00
      0.00   4519.00   1011210.00   1011210.00       1630.00       1630.00
      1.00   4519.00   1011210.00   1011210.00       1630.00       1630.00
      2.00   4519.00   1011210.00   1011210.00       1630.00       1630.00
      3.00   4519.00   1011210.00   1011210.00       1630.00       1630.00
      4.00   4519.00   1011210.00   1011210.00       1630.00       1630.00
      5.00   4519.00   1011210.00   1011210.00       1630.00       1630.00
      6.00   4519.00   1011210.00   1011210.00       1630.00       1630.00
      7.00   4519.00   1011210.00   1011210.00       1630.00       1630.00
      8.00   4519.00   1011210.00   1011210.00       1630.00       1630.00
      9.00   4519.00   1011210.00   1011210.00       1630.00       1630.00
     10.00   4519.00   1011210.00   1011210.00       1630.00       1630.00

Also interesting is that this problem does not happen in strategies.  The
same code with auto detect maxbarsback does not display the problem.

B.

-----Original Message-----
From: DH [mailto:catapult@xxxxxxxxxxxxxxxxxx]
Sent: Thursday, December 13, 2001 12:14 AM
To: Omega List
Subject: Re: TS2k LastBarOnChart??


Z-man, I haven't tried your code but here's a theory. :-) Are you using
the automatic MaxBarsBack? It looks like it's running through once with
MBB = 1, saying "oops that's wrong" and running through again with a
higher MBB. Thus the lower barnumber at lastbaronchart on the second
pass. If that's the deal, manually setting MBB to something you're sure
is more than big enough should fix it.

--
  Dennis