C# Класс XTAPI_Samples.frmProfitLoss

ProfitLoss This example demonstrates using the XTAPI to retrieve the open P&L (profit & loss) for multiple instruments. The TTDropHandler object is used to resolve an instrument dragged and dropped from the X_TRADER Market Grid. The TTInstrObj Alias property is used to distiguish between each instrument. Note: By default the format of the P&L from the XTAPI does not match the default setting in X_TRADER. Please see the following knowledge base article for further information: https://www.tradingtechnologies.com/support/knowledge-base/1/1894/
Наследование: System.Windows.Forms.Form
Показать файл Открыть проект

Открытые методы

Метод Описание
frmProfitLoss ( ) : System

Upon the application form loading, the TTDropHandler and TTInstrNotify objects are initialized, and the required events are subscribed.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
AboutMenuItem_Click ( object sender, System e ) : void

Display the About dialog box.

DisplayPLInformation ( XTAPI pInstr ) : void

Display the profit and loss and net position for each instrument.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Main ( ) : void
m_TTDropHandler_OnNotifyDrop ( ) : void

This function is called when one or more instruments are dragged and dropped from the Market Grid in X_TRADER.

m_TTInstrNotify_OnNotifyFound ( XTAPI pNotify, XTAPI pInstr ) : void

This function is called when an instrument is found after it is opened.

m_TTInstrNotify_OnNotifyUpdate ( XTAPI pNotify, XTAPI pInstr ) : void

This function is called when an instrument update occurs (i.e. LTP changes).

m_TTInstrNotify_OnOrderSetUpdate ( XTAPI pNotify, XTAPI pInstr, XTAPI pOrderSet ) : void

This function is called when the TTOrderSet is opened and for every order placed by the user.

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

frmProfitLoss() публичный Метод

Upon the application form loading, the TTDropHandler and TTInstrNotify objects are initialized, and the required events are subscribed.
public frmProfitLoss ( ) : System
Результат System