- Accounts & Connection Management
- Data Management & Analysis
- Price Monitoring
- Charting
- Trading
- Scanners
-
Builders
-
Manual Strategy Builder
- Main Concept
- Operand Component
- Algo Elements
-
Use Cases
- How to create a condition on something crossing something
- How to create an indicator based on another indicator
- How to calculate a stop loss based on indicator
- How to submit stop order based on calculated price
- How to calculate a current bar price using a price type from inputs
- How to Use a Closed Bar Price
- Automatic Strategy Builder
-
Manual Strategy Builder
- Autotrading
- FinScript
- Trade Analysis
- Media Feeds
- Logs & Notifications
- UI & UX
A developer can get an information about account. To do it he shoud use Account.BrokerageProvider.AccountData object. The folowing information is available:
- Currency - base currency of account;
- InitialBalance - initial balance of account. Can be double.NaN if information is not available;
- AvailableBalance - current balance (without current unrealized profit). Can be double.NaN if information is not available. Available balance can be calculated as InitialBalance plus RealizedProfitLoss;
- Equity - current equity (balance + current unrealized profit). Can be double.NaN if information is not available;
- RealizedProfitLoss - realized profit/loss. Can be double.NaN if information is not available;
- Leverage - leverage. Can be double.NaN if information is not available;
- Margin - currently locked by open positions money. Margin depends on Leverage. For calculating margin you have to divide all your open positions by Leverage;
- MarginPercent - is Equity/Margin*100%;
- IsDemo - returns true if the account is demo. Information about account is accessible only logon. Before logon, the value is null;
- PositionAccountingType - the type of position accounting: netting or hedging. If this information is not available (for example, account is not connected yet) then the result is null
- Accounts & Connection Management
- Data Management & Analysis
- Price Monitoring
- Charting
- Trading
- Scanners
-
Builders
-
Manual Strategy Builder
- Main Concept
- Operand Component
- Algo Elements
-
Use Cases
- How to create a condition on something crossing something
- How to create an indicator based on another indicator
- How to calculate a stop loss based on indicator
- How to submit stop order based on calculated price
- How to calculate a current bar price using a price type from inputs
- How to Use a Closed Bar Price
- Automatic Strategy Builder
-
Manual Strategy Builder
- Autotrading
- FinScript
- Trade Analysis
- Media Feeds
- Logs & Notifications
- UI & UX