|
override StopProfit | CreateNew () |
|
override void | CommitChanges (StopProfit model, bool cloneOrders) |
|
override SimpleStopProfitSettings | OnGetSettings () |
|
override void | OnSetSettings (SimpleStopProfitSettings settings) |
|
override ICollection< string > | OnIsValidSettings (SimpleStopProfitSettings settings, decimal positionVolume, decimal positionPrice, decimal currentPrice) |
|
override void | OnResetStopTakeOrderId () |
|
override void | OnResetCustomStopAndTakePrices () |
|
override void | DisableStopAndTake () |
|
override void | OnAttachStopAndTakeOrdersFailed () |
|
override void | OnProcessOrder (Order order) |
|
override async Task | OnCancelAll (bool retryOnError) |
|
override async Task< bool > | OnCancelSecondOrder (Order order) |
|
override bool | SetStopOrTakeCancelledManually (Order order, string type) |
|
override bool | SetStopOrTakeCustomPrice (Order currentStopOrTake, Order newOrder) |
|
override bool | IsStopOrder (Order order) |
|
override bool | IsTakeOrder (Order order) |
|
override async Task | OnProcess (ChangesInfo info) |
|
override void | OnCurrentPositionChanged () |
|
override void | OnPnLChanged (int ticks) |
|
async Task | ProcessAfterDelay (TimeSpan? delay=null) |
|
void | Process (bool isPositionChanged=false, bool isOrdersChanged=false, bool isSettingsChanged=false) |
|
decimal | GetPriceValue (decimal price, PriceUnit value, decimal sign) |
|
bool | IsEquals (Order first, Order second, bool isStop, bool comparePrices) |
|
Order | TryAttachOrder (string type, Order order, StrategyOrderId orderId, string prefix) |
|
Order | CreateStopOrder (OrderDirections direction, decimal sl, decimal volume, string prefix) |
|
Order | CreateTakeOrder (OrderDirections direction, decimal tp, decimal volume, string prefix) |
|
async Task< bool > | TryCancelStopOrTake (string type, Order order, string message, string prefix, bool retryOnError) |
|
async Task< Order > | TryProcessStopOrTake (string type, Order oldOrder, OrderDirections direction, PriceUnit? currentValue, int positionSign, decimal volume, string prefix, bool isPositionChanged) |
|
async Task< bool > | TryCancelSecondOrder (string type, Order order, string prefix) |
|
void | ResetCustomStopAndTakePrices () |
|
void | ResetWatchState () |
|
virtual void | OnProcessOrder (Order order) |
|
abstract Task | OnCancelAll (bool retryOnError) |
|
abstract Task< bool > | OnCancelSecondOrder (Order order) |
|
abstract Task | OnProcess (ChangesInfo info) |
|
abstract void | OnResetCustomStopAndTakePrices () |
|
abstract void | OnResetStopTakeOrderId () |
|
abstract void | DisableStopAndTake () |
|
abstract void | OnAttachStopAndTakeOrdersFailed () |
|
abstract bool | SetStopOrTakeCustomPrice (Order currentStopOrTake, Order newOrder) |
|
abstract bool | SetStopOrTakeCancelledManually (Order order, string type) |
|
abstract void | OnSetSettings (TSettings settings) |
|
abstract TSettings | OnGetSettings () |
|
abstract ICollection< string > | OnIsValidSettings (TSettings settings, decimal positionVolume, decimal positionPrice, decimal currentPrice) |
|
override async Task | OnStarted () |
| Called when the strategy is started from StrategyStates.Stopped state.
|
|
override async Task | OnStartedFromWatch () |
| Called when the strategy is started from StrategyStates.Watch state.
|
|
override async Task | OnStopping () |
| Called when the strategy is stopping.
|
|
override Task | OnRetry () |
|
override async Task | OnCancel () |
|
override Task | OnResetOrders () |
|
override void | OnCurrentPositionChanged () |
| Called when the volume of the current position changes.
|
|
override async Task | OnModifyOrder (Order order, Order newOrder, bool isAutomated) |
| Called when an existing order is modified.
|
|
override async Task | OnCancelOrder (Order order, bool isAutomated) |
| Called when an order is canceled.
|
|
override async Task | OnCancelOrdersAsync (IEnumerable< Order > orders) |
|
override void | OnNewOrder (Order order) |
| Called when a new order is added.
|
|
override void | OnOrderChanged (Order order) |
| Called when an existing order is changed.
|
|
override void | OnSetStopProfitSettings (IStopProfitSettings settings) |
|
override IStopProfitSettings | OnGetStopProfitSettings () |
|
| override (bool IsValid, IEnumerable< string > Errors) OnIsValidStopProfitSettings(IStopProfitSettings settings |
|