9Script contexts

When you save a script in the Run Script widget, you can give it a "context". This makes it available in a specific place within the MyTrader platform, rather than being part of the list of scripts for general use.

For example, you can set up a script so that it is included on the action menu for a trade or order (in the Trade List component, or from the chart marker for an open trade or pending order).

Scripts which have a context receive information about that context in their Framework.privateSettings, as described below.