PureBytes Links
Trading Reference Links
|
There is one very different way. You can create a dummy data file with data
into the future e.g. until 30th, November. Then load this data as data2 and
"hide" it. Now ts2000 assumes that the 30th, November is the LastBarOnChart.
I used this approach in TS4 because there is no possibility to extend bars
to the right.
Using this approach it is permanent work to keep this dummy file up to date.
Maybe someone knows an easy way how to add everyday one more day to the
dummy file by software.
At least one possible workaround and the only one, I can think of, for TS4
users.
Wolfgang
-----Original Message-----
From: Clyde Lee [mailto:clydelee@xxxxxxxxxx]
Sent: Tuesday, October 12, 2004 2:08 PM
To: Ivo Karindi; omega-list@xxxxxxxxxx; wH
Cc: 'Ivo Karindi'
Subject: Re: Re[4]: text beyond LastBarOnChart <- Yes you can!
"and Sundays is easy, but when you also want to take into account
holidays it will be a *MAJOR* headache - there is no way for TS to
know future holidays in advance unless you create your own holiday"
Even with a correct holiday table it would make no difference. If
you will look at the dates (make bars to right = 200 or so) you
will find that TS does not know/pay attention to anything other than
the WEEKEND days so the problem is not too tough. It does take
a bit of programming though.
If working with intraday data you might note that forward of last
bar for tick and volume bars the time increment is 1.
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Clyde Lee Chairman/CEO (Home of SwingMachine)
SYTECH Corporation email: clydelee@xxxxxxxxxxxx
7910 Westglen, Suite 105 Office: (713) 783-9540
Houston, TX 77063 Fax: (713) 783-1092
Details at: www.theswingmachine.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
----- Original Message -----
From: "Ivo Karindi" <ivo@xxxxxxxxx>
To: <omega-list@xxxxxxxxxx>; "wH" <wofipa@xxxxxxxxxxxxx>
Cc: "'Ivo Karindi'" <ivo@xxxxxxxxx>
Sent: Monday, October 11, 2004 9:58 AM
Subject: Re[4]: text beyond LastBarOnChart <- Yes you can!
>w> I am still looking for a solution how to convert lets say 12 bars in the
> w> future to the relevant date. In daily chart I need to take care of
> weekends
> w> and holidays. Any ideas?
>
> Well, making that number 15 into a variable is the first thing, but
> then you'll need to check the future dates whether there are any
> weekends/holidays in that future period. Solving this for Saturdays
> and Sundays is easy, but when you also want to take into account
> holidays it will be a *MAJOR* headache - there is no way for TS to
> know future holidays in advance unless you create your own holiday
> database etc. I tried it once and failed :(, then found a workaround
> so I would not need it.
>
> Think about it: for computational purposes, only thing you need is the
> numbers of bars. For plotting, you need also dates. If you just want
> to plot/place text into the future x bars after LastBarOnChart, all
> you need is to specify the number of bars in the future and use the
> method below because TS assumes that there are no holidays during this
> future period before they are actually known (it is aware about the
> weekends).
>
> Ivo Karindi
>
> w> vars: y(0), Str(""), DD(0);
>
> w> if LastBarOnChart then begin
> w> Str = "YourString";
> w> DD = JulianToDate(DateToJulian(Date) + 15);
> w> y = Text_New(DD1, 0, Low, Str);
> w> Text_SetStyle(y, 0, 1);
> w> end;
>
|