PureBytes Links
Trading Reference Links
|
Matt,
There are a few differences in the way the syntax
for entering and exiting trades is treated. If
you export the ELA file from TS2ki to TS6 it will
convert the syntax automatically. I had the same
problem. Instead of "ExitLong at market", TS6
uses "sell next bar at market", and instead
of "ExitShort at market", it uses "buy to cover
next bar at market".
I think this was done to make it
more "conversational" for those not familiar with
EasyLanguage, although I think it just makes
things harder for everyone else.
Hope this helps.
Kirk
> --- Original Message ---
>Sent: 11/15/01 17:46:47
>From: mattbowen@xxxxxxxxxxxxx
>To: omega-list@xxxxxxxxxx
>Subject: 2000i vs. TradeStation 6 code
>
>I just installed TradeStation 6 and now my 2000i
code no longer works.
>The code below is for a simple volatility
breakout system using 65 of the
>previous bars range... and we are trying to exit
on the first profitable
>open...as you can see below it works fine on
TradeStation 2000i, but
>when the same code no longer works in
TradeStation 6... Any Ideas?
>
>{2000i code}
>-------------------------------------------------
-------------------------
>Inputs: PositionBasis(True), Amount(0), Factor
(.30);
>
>Value1= TrueRange[0] * Factor;
>Buy tomorrow at open of tomorrow + Value1 stop;
>Sell tomorrow at open of tomorrow - Value1 stop;
>
>If Open of next bar > entryprice then exitlong
at Market;
>If open of next bar < entryprice then exitshort
at Market;
>-------------------------------------------------
-------------------------
>Now, when I try to plug it into TradeStation
6... I get the following
>message:
>"SYNTAX ERROR = word not recognized by
EasyLanguage"
>
>How can this be a syntax error? What did they do
revamp EasyLanguage
>Entry/exit strategies?
>
>Any help much appreciated,
>
>Matt Bowen
>mattbowen@xxxxxxxxxxxxx
>
|