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

GEN : How does TradeStation sequence system code?



PureBytes Links

Trading Reference Links

Hiya,

I'm playing with system code in TradeStation, working on a reversal
idea.  Normally, the system will just issue simple buy and sell
stop orders for the next day's bar based on today's activity, but
I have an exception case that I'm trying to guess how to code.

On the day a position is taken, if the close of the market is some 
fixed distance away I want to add an extra reversal stop order that 
stays at the one fixed price in addition to the normal reversal 
orders that are generated, OCO.

I didn't see any special way to do an OCO in EasyLanguage, so I'm
assuming I'll have to do the conditional logic myself.  That got me
to wondering...  does TradeStation execute the entire
system program for every bar?  That is, does it execute the program,
shift to the next bar and do it all over again, or does it simply
load the buy and sell rules and step through bars, pegging orders as
the static rules are triggered?

If it's the first method, it shouldn't take long to create a set of
flipping switches that enable and disable orders depending on the
circumstances.  If it's the second method, has anybody been able to
code a dynamic rule structure that reacts to the changing market
underneath the system, or should I just do it by hand?

Thanks oodles for your help.  As I'm new to this list and it appears
that y'all are just beginning an adminiwar about posting, I'm sure
I'll have violated something here; do let me know, as that adds to
the pleasant nature of my day.

Sticks         
--
Troutman, Defender of Sticks   (aka)   Jonathan Matte, President
troutman@xxxxxxxxxxxx                  Defender Capital Management, Inc.
                                       Introducing Broker
http://www.teleport.com/~troutman
Reviews, opinions, noise about futures trading, books, systems, services