SetRouteName (Reserved Word)
Sets the order routing for the strategy order.
No validation of orders will be done. Any incorrect combination will result in the trade server rejecting the order.
Usage
SetRouteName("RouteName")
Return
None
Inputs
RouteName is a user-defined text string of the route to use for the order (refer to the Route names available from the TradeStation order bar). If the string doesn't match a valid route, "Intelligent" will be used for the order routing.
Example
A limit order to buy at the inside bid routed by Intelligent routing:
if lastbaronchart then begin
SetRouteName("Intelligent");
Buy next bar at insidebid Limit;
end;
A limit order to buy at the inside bid routed to the ARCX ECN:
if lastbaronchart then begin
Value1 = "ARCX"
SetRouteName(Value1);
Buy next bar at insidebid Limit;
end;