Documentation>Application Documentation>XMIM Documentation>XMIM Examples>DO EVERY TRADE Example

DO EVERY TRADE Example
 

To add the DO EVERY TRADE query block, select Tools>Add Query Block>DO EVERY TRADE from the XMIM menu bar.

Do Every Trade: On Entry/Exit

On Entry
someVariable = 1

On Exit
someVariable = 0

The Do On Entry block will be executed each time a trade entry occurs. The Do On Exit block will be executed each time a trade exit occurs.

Options which effect the Do On Entry/Exit block

  • Execution Units

  • Attribute Units

  • Execution Options