READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Tradestation Easy language code output error

1 replies

Rushi

Subscriber, bbp_participant, customer, community, sq-ultimate, 1 replies.

Visit profile

1 year ago #288213

With version 141.2225 any code exported for Tradestation has an “order name already used” for “ExitEndOfDayL” in the following code section:

// Exit At End Of Range
if LimitSignalsTimeRange = True and ExitAtEndOfRange = true then begin
if SignalTimeRangeFrom < SignalTimeRangeTo and Time >= SignalTimeRangeTo then begin
if (MarketPosition > 0) then Sell(“ExitEndOfDayL”) This Bar On Close;
if (MarketPosition < 0) then BuyToCover(“ExitEndOfDayS”) This Bar On Close;
end;
if SignalTimeRangeFrom >= SignalTimeRangeTo and Time >= SignalTimeRangeTo and Time < SignalTimeRangeFrom then begin
if (MarketPosition > 0) then Sell(“ExitEndOfDayL”) This Bar On Close;
if (MarketPosition < 0) then BuyToCover(“ExitEndOfDayS”) This Bar On Close;
end;
end;

I have to delete this section each time I want to test code.

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

1 year ago #288234

Hi,

we are preparing a patch for this issue introduce with the build 141. It should be available in couple days

0

Viewing 1 replies (of 1 total)