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

Re: WL data feeds / tick updating



PureBytes Links

Trading Reference Links

Trader:

>> One thing I'd like to know, does WL update indicators in real 
>> time as the ticks are coming in, or only at the end of each 
>> bar?  That's one feature of TS that I very much need and use.
>
>Same here. WLD can not do that and no plans to implement
>that shortly.
> 
>> I wish TS would do the same for trading strategies, but it 
>> does it only for indicators (WL doesn't distinguish between 
>> the two, correct? You can write a trading strategy that 
>> simultaneously plots things?).
>
>For strategies it would not be a good idea. It would get you in
>and out of a trade multiple times on the same bar if your signal 
>is very close to the signal level. Real time results would differ
>a lot from backtested results in those cases because costs and
>slippage would be completely different.

No, it wouldn't have to.  Instead of resetting ALL calculations as
each tick comes in to recalculate bars, once an order is filled,
the fact that an order is filled does not get reset.  When a bar
is recalculated, it is done accounting for the fact that order "X"
has already been opened.  To the code, what would happen is that
things like MarketPosition would be set once an order is filled and
not reset when the indicator is recalculated on the next tick, so
your code won't behave improperly.  It's really a trivial feature to
have, given that a program can already update an indicator on every
tick.

>WL indeed doesn't distinguish between signals and indicators.
>You place it all in one script wich is probably why it is not
>possible to update only the indicators in real time.

I think it's trivial.  It needs a bit of extra code for internal
order tracking, that's all.  It would have to allow just one entry
in each direction and one exit in each direction, per bar.  It could
also be a feature to turn off and on at the whim of the user.  Me,
I wrote my code for TS *assuming* that signals could be updated on
every tick, so I accounted for the recalculation aspect by checking
marketposition.  I was disappointed to learn that TS can't update
signals on every tick within a bar.

-- 
  ,|___    Alex Matulich -- alex@xxxxxxxxxxxxxx
 // +__>   Director of Research and Development
 //  \ 
 // __)    Unicorn Research Corporation -- http://unicorn.us.com