Bypass Trade Windows
Bypass trade windows will allow an alert signal to pass through regardless of how the Global, Account-Level, or Alert-Level trade windows are defined.
Sometimes we need to send a command to XT regardless of how our trade windows have been set. Perhaps you've scheduled a fail-safe order at a specific time each day to flatten your prop account and want to ensure it goes through and doesn't get blocked by your trade windows.
In this case, we can use bypass_trade_windows=true;
inside of any alert message type. This triggers CrossTrade to skip evaluation of all trade windows you have defined. We can do this by setting the bypass_trade_windows
value to true
. Any other value will not be evaluated and treated as false
, disabling the bypass.
Example Payloads
PLACE command with bypass_trade_windows
enabled.
key=your-secret-key; account=Sim101; instrument=ES 03-25; command=PLACE; order_type=MARKET; action=BUY; qty=1; tif=DAY; bypass_trade_windows=true;
Last updated