Click or drag to resize

MarketRuleHelper Methods

The MarketRuleHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberActiveRule
To activate the rule.
Public methodStatic memberAddRuleLog
To write the message from the rule.
Public methodStatic memberAnd(IEnumerableIMarketRule)
To combine rules by AND condition.
Public methodStatic memberAnd(IMarketRule, IMarketRule)
To combine rules by AND condition.
Public methodStatic memberAndTToken, TArg(MarketRuleTToken, TArg, MarketRuleTToken, TArg)
To combine rules by AND condition.
Public methodStatic memberApply(IMarketRule)
To form a rule (include IsReady).
Public methodStatic memberApply(IMarketRule, IMarketRuleContainer)
To form a rule (include IsReady).
Public methodStatic memberApplyTToken, TArg(MarketRuleTToken, TArg)
To form a rule (include IsReady).
Public methodStatic memberApplyTToken, TArg(MarketRuleTToken, TArg, IMarketRuleContainer)
To form a rule (include IsReady).
Public methodStatic memberChanged
To create a rule for the position change event.
Public methodStatic memberExclusive
To make rules mutually exclusive.
Public methodStatic memberOnceTRule
To make the rule one-time rule (will be called only once).
Public methodStatic memberOr(IEnumerableIMarketRule)
To combine rules by OR condition.
Public methodStatic memberOr(IMarketRule, IMarketRule)
To combine rules by OR condition.
Public methodStatic memberOrTToken, TArg(MarketRuleTToken, TArg, MarketRuleTToken, TArg)
To combine rules by OR condition.
Public methodStatic memberSuspendTRule
To suspend or resume the rule.
Public methodStatic memberSuspendRules(Action)
To process rules in suspended mode (for example, create several rules and start them up simultaneously). After completion of method operation all rules, attached to the container resume their activity.
Public methodStatic memberSuspendRules(IMarketRuleContainer, Action)
To process rules in suspended mode (for example, create several rules and start them up simultaneously). After completion of method operation all rules, attached to the container resume their activity.
Public methodStatic memberTryRemoveRule
To delete a rule. If a rule is executed at the time when this method is called, it will not be deleted.
Public methodStatic memberTryRemoveWithExclusive
To delete the rule and all opposite rules. If the rule is executed at the time when this method is called, it will not be deleted.
Public methodStatic memberUpdateLogLevelTRule
To set the logging level.
Public methodStatic memberUpdateNameTRule
To assign the rule a new name Name.
Public methodStatic memberWhenAllTrades
To create a rule for the event of all trades occurrence for the order.
Public methodStatic memberWhenBestAskPriceLess(MarketDepth, Unit)
To create a rule for the event of the best offer decrease on a specific value.
Public methodStatic memberWhenBestAskPriceLess(Security, IConnector, Unit)
To create a rule for the event of dropping the best offer below the specific level.
Public methodStatic memberWhenBestAskPriceMore(MarketDepth, Unit)
To create a rule for the event of the best offer increase on a specific value.
Public methodStatic memberWhenBestAskPriceMore(Security, IConnector, Unit)
To create a rule for the event of excess of the best offer of the specific level.
Public methodStatic memberWhenBestBidPriceLess(MarketDepth, Unit)
To create a rule for the event of the best bid decrease on a specific value.
Public methodStatic memberWhenBestBidPriceLess(Security, IConnector, Unit)
To create a rule for the event of dropping the best bid below the specific level.
Public methodStatic memberWhenBestBidPriceMore(MarketDepth, Unit)
To create a rule for the event of the best bid increase on a specific value.
Public methodStatic memberWhenBestBidPriceMore(Security, IConnector, Unit)
To create a rule for the event of excess of the best bid of specific level.
Public methodStatic memberWhenCanceled
To create a rule for the order cancelling event.
Public methodStatic memberWhenCancelFailed
To create a rule for the event of unsuccessful order cancelling on exchange.
Public methodStatic memberWhenCandles
To create a rule for the event of candles occurrence, change and end.
Public methodStatic memberWhenCandlesChanged
To create a rule for candle change event.
Public methodStatic memberWhenCandlesFinished
To create a rule for candles end event.
Public methodStatic memberWhenCandlesStarted
To create a rule for the event of new candles occurrence.
Public methodStatic memberWhenChanged(MarketDepth)
To create a rule for the order book change event.
Public methodStatic memberWhenChanged(ICandleManager, Candle)
To create a rule for candle change event.
Public methodStatic memberWhenChanged(Order, IConnector)
To create a rule for the order change event.
Public methodStatic memberWhenChanged(Portfolio, IConnector)
To create a rule for the event of change portfolio .
Public methodStatic memberWhenChanged(Security, IConnector)
To create a rule for the instrument change event.
Public methodStatic memberWhenClosePriceLess
To create a rule for the event of candle closing price reduction below a specific level.
Public methodStatic memberWhenClosePriceMore
To create a rule for the event of candle closing price excess above a specific level.
Public methodStatic memberWhenConnected
To create a rule for the event of connection established.
Public methodStatic memberWhenConnectionLost
To create a rule for the event of connection lost.
Public methodStatic memberWhenCurrentCandleTotalVolumeMore
To create a rule for the event of candle total volume excess above a specific level.
Public methodStatic memberWhenDisconnected
To create a rule for the event of disconnection.
Public methodStatic memberWhenFinished
To create a rule for candle end event.
Public methodStatic memberWhenIntervalElapsed
To create a rule for the event MarketTimeChanged, activated after expiration of interval.
Public methodStatic memberWhenLastTradePriceLess
To create a rule for the event of reduction of the last trade price below the specific level.
Public methodStatic memberWhenLastTradePriceMore
To create a rule for the event of increase of the last trade price above the specific level.
Public methodStatic memberWhenLess
To create a rule for the event of position decrease below the specific level.
Public methodStatic memberWhenLossMore
To create a rule for the order's loss more on offset.
Public methodStatic memberWhenMarketDepthChanged(BasketSecurity, IConnector)
To create a rule for the event of order book change by instruments basket.
Public methodStatic memberWhenMarketDepthChanged(Security, IConnector)
To create a rule for the event of order book change by instrument.
Public methodStatic memberWhenMatched
To create a rule for the event of order fully matching.
Public methodStatic memberWhenMoneyLess
To create a rule for the event of money decrease in portfolio below the specific level.
Public methodStatic memberWhenMoneyMore
To create a rule for the event of money increase in portfolio above the specific level.
Public methodStatic memberWhenMore
To create a rule for the event of position increase above the specific level.
Public methodStatic memberWhenNewMyTrade
To create a rule for the event of new trade occurrences.
Public methodStatic memberWhenNewOrder
To create a rule for the event of new orders occurrences.
Public methodStatic memberWhenNewOrderLogItem
To create a rule for the event of new notes occurrence in the orders log for instrument.
Public methodStatic memberWhenNewTrade(Order, IConnector)
To create a rule for the event of trade occurrence for the order.
Public methodStatic memberWhenNewTrade(Security, IConnector)
To create a rule for the event of new trade occurrence for the instrument.
Public methodStatic memberWhenPartiallyFinished
To create a rule for the event of candle partial end.
Public methodStatic memberWhenPartiallyFinishedCandles
To create a rule for the event of candle partial end.
Public methodStatic memberWhenPartiallyMatched
To create a rule for the event of order partial matching.
Public methodStatic memberWhenProfitMore
To create a rule for the order's profit more on offset.
Public methodStatic memberWhenRegistered
To create a rule for the event of successful order registration on exchange.
Public methodStatic memberWhenRegisterFailed
To create a for the event of order unsuccessful registration on exchange.
Public methodStatic memberWhenSpreadLess
To create a rule for the event of order book spread size decrease on a specific value.
Public methodStatic memberWhenSpreadMore
To create a rule for the event of order book spread size increase on a specific value.
Public methodStatic memberWhenTimeCome(IConnector, IEnumerableDateTimeOffset)
To create a rule, activated at the exact time, specified through times.
Public methodStatic memberWhenTimeCome(IConnector, DateTimeOffset)
To create a rule, activated at the exact time, specified through times.
Public methodStatic memberWhenTotalVolumeMore
To create a rule for the event of candle total volume excess above a specific level.
Top
See Also