Here is a video demonstrating how TradeStation macros, accessible to EasyLanguage through RunCommand, can be used to create a custom complex order for Limit to Market conversion at a specified time.

TSO.Lmt2MktCustom function