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

RE: 2000i vs. TradeStation 6 code



PureBytes Links

Trading Reference Links

Matt,

try the following:

Sincerely,
Wes Williams

>
>
> {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;

Sell Short next bar at O next bar - Value1 stop;

>
> If Open of next bar > entryprice then exitlong at Market;

If O next bar > entryprice then Sell;

> If open of next bar < entryprice then exitshort at Market;

If O next bar < entryprice then BuyToCover;

> --------------------------------------------------------------------------
> 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
>
>
>