Class AbstractTickerStrategy
java.lang.Object
com.wualabs.qtsurfer.engine.core.AbstractNameable
com.wualabs.qtsurfer.engine.strategy.AbstractStrategy
com.wualabs.qtsurfer.engine.strategy.AbstractSubscriptionStrategy<Ticker>
com.wualabs.qtsurfer.engine.strategy.AbstractTickerStrategy
- All Implemented Interfaces:
Nameable, Named, Unsubscribable, Strategy, SubscriptionStrategy<Ticker>, TickerStrategy
public abstract class AbstractTickerStrategy
extends AbstractSubscriptionStrategy<Ticker>
implements TickerStrategy
-
Field Summary
Fields inherited from class AbstractStrategy
CONFIG_INPUT_CURRENCY, CONFIG_OUTPUT_CURRENCY, inputCurrency, outputCurrency, stats -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanacceptInstrument(@NonNull Instrument instrument) protected InstrumentGroupRTIndicatorcreateInstrumentGroupRTIndicator(Instrument instrument) voidinit(@NonNull com.wualabs.qtsurfer.engine.exchange.ExchangeSupport exchangeSupport) protected voidsetupIndicators(InstrumentGroupRTIndicator indicators) voidMethods inherited from class AbstractSubscriptionStrategy
clearIndicators, createBuySignal, createInfoStrategySignal, createSellSignal, emitBuy, emitInfo, emitSell, emitSignal, emitYield, fillSignal, getInstrumentIndicatorGroup, getLastEventTimestamp, getMarketDataSourceName, getNotices, getRTIndicator, getStateStore, getStateStoreForResult, getUpdatedSignal, getUpdateErrorCount, isEnableIndicatorsSignals, isSourceFailed, overrideTimestamp, reset, setEnableIndicatorsSignals, setIndicatorBankSession, setLastEventTimestamp, setStateStoreProvider, setupInstrumentGroupRTIndicator, sourceBackpressure, subscribeSource, toString, unsubscribe, updateIndicators, updateInstrumentMethods inherited from class AbstractStrategy
acceptCurrency, applyProperty, clearNotice, configure, equals, getCurrencyFilter, getEngineVersion, getEngineVersionMajor, getEngineVersionMinor, getExchangeName, getExecutionCallback, getExecutionConfig, getExecutionMode, getId, getInputCurrency, getInstruments, getMinGain, getMinPercentGainMultiplier, getOutputCurrency, getPercentGain, getProperty, getPropertyInfo, getPropertyInfos, getSignals, getStats, getYields, hashCode, hasProperty, isEnabled, raiseNotice, registerPropertyInfo, registerPropertyInfo, registerPropertyInfo, registerPropertyInfo, setBlacklistedCurrencies, setCurrencyFilter, setEnabled, setExecutionCallback, setExecutionMode, setMinGain, setMultiEntryEnabled, setPercentGain, setProperty, setWhitelistedCurrencies, toStringMethods inherited from class AbstractNameable
getName, setNameMethods inherited from interface Strategy
applyProperty, configure, getExecutionCallback, getExecutionConfig, getExecutionMode, getId, getInputCurrency, getInstruments, getNotices, getOutputCurrency, getProperty, getProperty, getPropertyInfo, getPropertyInfos, getSignals, getStateStore, getStats, getYields, hasProperty, hasProperty, isCurrencyLess, isEnabled, reset, setEnabled, setProperty, setPropertyMethods inherited from interface SubscriptionStrategy
subscribeSource, updateFrom
-
Constructor Details
-
AbstractTickerStrategy
public AbstractTickerStrategy()
-
-
Method Details
-
init
public void init(@NonNull @NonNull com.wualabs.qtsurfer.engine.exchange.ExchangeSupport exchangeSupport) - Specified by:
initin interfaceStrategy- Overrides:
initin classAbstractStrategy
-
update
- Specified by:
updatein interfaceSubscriptionStrategy<Ticker>
-
createInstrumentGroupRTIndicator
- Specified by:
createInstrumentGroupRTIndicatorin classAbstractSubscriptionStrategy<Ticker>
-
setupIndicators
- Overrides:
setupIndicatorsin classAbstractSubscriptionStrategy<Ticker>
-
accept
- Specified by:
acceptin interfaceSubscriptionStrategy<Ticker>- Specified by:
acceptin interfaceTickerStrategy
-
acceptInstrument
- Specified by:
acceptInstrumentin interfaceSubscriptionStrategy<Ticker>
-
getMarketDataSource
- Specified by:
getMarketDataSourcein interfaceSubscriptionStrategy<Ticker>- Specified by:
getMarketDataSourcein interfaceTickerStrategy
-