Documentation>Application Documentation>XMIM Documentation>XMIM Examples>Order Entry Example

Order Entry Example
 

The Order Block is executed when the WHEN condition is true. At that time, orders are placed, although not necessarily executed.

Entry Order Statement
   1.1: Buy [ <time offset> ] <attribute> contract of ( <symbol> | <attribute> )
                Enter on the ( open | close | market )
                Exit on the (  open | close | market  )

Exit Order Statement
   2.1: Exit [ <time offset> ] ( combined | individual ) <trade label> on the ( open | close )

equity - This query illustrates use of a trailing stop.

equity2 - This is a simple query showing equity

Exit on Entry Day Example - This query illustrates how to exit a trade on the day it was entered, simulating a stop