9.4Order Menu script context

Scripts which are assigned to the Order Menu context are displayed in the following places within MyTrader:

In the trade list widget, under the All/Filtered Orders and Selected Orders sub-menus of the Tools menu

In the pop-up action menu for an individual order in the trade list grid

In the pop-up action menu for an order from its marker on a trade chart

The script receives the following information in its Framework.privateSettings about the applicable orders. The orders[] array will contain a single ID if used from the action menu of a chart marker or individual entry in the trade list grid. The array may contain multiple orders if used from the Tools menu of the trade list.

Member

Description

scriptContext

Set to "ordermenu"

orders[]

Array of applicable orders/trades