- 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
To create new Money Management model a developer should create a class and inherit it from MoneyManagement class. After it he will have to implement method OnCalculate and place position sizing logic in there.Â
internal class TestMoneyManagement:MoneyManagement
{
#region Overrides of MoneyManagement
/// <inheritdoc />
protected override MoneyManagementResult OnCalculate(TradeAction tradeAction, double price)
{
//Write your code here
return new MoneyManagementResult(new Quantity(1));
}
#endregion
}
Also there are other usuful function a developer can use for creating Money management model:
- SetAccount - allows to handle account setting
public override void SetAccount(Account account)
{
//Write your code here
}
- SetInstrument - allows to handle instrument setting;
public override void SetInstrument(Instrument instrument)
{
//Write your code here
}
There are several standard money management models a developer can use for strategy development;
Developed money managent model can be used as a parameter for the strategy on a chart or in backtester.Â
- 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