Difference between revisions of "4.7.5.1 TradeManager.Basic statements"

From MultiCharts
Jump to navigation Jump to search
(Created page with "With the classic strategy it was possible to trade only one instrument within one trading profile. Trade Manager allows trading on several instruments, accounts or profiles; i...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
With the classic strategy it was possible to trade only one instrument within one trading profile. Trade Manager allows trading on several instruments, accounts or profiles; it also obtains the relevant data about the orders on the broker’s side, real open positions, and account(s) information directly from the script of the study.  It provides access to all information available in the Order’s & Position’s Tracker as well as the ability to send the orders, both regular and OCO ones, to modify them and to cancel them.
 
With the classic strategy it was possible to trade only one instrument within one trading profile. Trade Manager allows trading on several instruments, accounts or profiles; it also obtains the relevant data about the orders on the broker’s side, real open positions, and account(s) information directly from the script of the study.  It provides access to all information available in the Order’s & Position’s Tracker as well as the ability to send the orders, both regular and OCO ones, to modify them and to cancel them.
  
Access to Trade Manager functionality is available via the '''TradeManager''' property returned by the '''ITradeManager''' interface. This interface contains:
+
Access to Trade Manager functionality is available via the '''TradeManager''' property of '''ITradeManager''' interface. This interface contains:
 
# {{color|blue|void ProcessEvents();}}
 
# {{color|blue|void ProcessEvents();}}
 
# {{color|blue|void ProcessEvents(TimeSpan max_time);}}  
 
# {{color|blue|void ProcessEvents(TimeSpan max_time);}}  
Line 8: Line 8:
 
# {{color|blue|ITradingProfile[] TradingProfiles { get; }}} provides access to trading profiles available in MultiCharts .NET.
 
# {{color|blue|ITradingProfile[] TradingProfiles { get; }}} provides access to trading profiles available in MultiCharts .NET.
  
[[Category:.NET Programming Giude]]
+
[[Category:4. Understanding PowerLanguage .NET]]

Latest revision as of 18:00, 3 May 2019

With the classic strategy it was possible to trade only one instrument within one trading profile. Trade Manager allows trading on several instruments, accounts or profiles; it also obtains the relevant data about the orders on the broker’s side, real open positions, and account(s) information directly from the script of the study. It provides access to all information available in the Order’s & Position’s Tracker as well as the ability to send the orders, both regular and OCO ones, to modify them and to cancel them.

Access to Trade Manager functionality is available via the TradeManager property of ITradeManager interface. This interface contains:

  1. void ProcessEvents();
  2. void ProcessEvents(TimeSpan max_time);

These methods initiate the processing of queued events.

  1. ITradingData TradingData { get; } this provides access to orders, positions, accounts and events on these elements changes.
  2. ITradingProfile[] TradingProfiles { get; } provides access to trading profiles available in MultiCharts .NET.