Record Class IndicatorNotice
java.lang.Object
java.lang.Record
com.wualabs.qtsurfer.engine.indicators.core.IndicatorNotice
- Record Components:
level- how much attention this deservescode- stable, greppable identifier — clients may switch on it, so treat it as APIindicatorName- the registered name of the indicator concernedinstrument- the instrument whose group raised itmessage- human-readable explanation, safe to show to a strategy author
- All Implemented Interfaces:
Notice
public record IndicatorNotice(@NonNull Notice.Level level, @NonNull String code, @NonNull String indicatorName, @NonNull Instrument instrument, @NonNull String message)
extends Record
implements Notice
A
Notice an indicator group raises about its own wiring: it names the indicator concerned
and the instrument whose group raised it, which is what makes a notice actionable when a strategy
runs the same indicator set across many instruments.
See Notice for why notices exist and how they differ from signals.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordWhat makes a notice unique: the condition, and the indicator it concerns.Nested classes/interfaces inherited from interface Notice
Notice.Level -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRaised when an indicator that needs per-bar OHLCV is bound to a ticker stream, where volume and high/low are 24-hour rolling statistics. -
Constructor Summary
ConstructorsConstructorDescriptionIndicatorNotice(@NonNull Notice.Level level, @NonNull String code, @NonNull String indicatorName, @NonNull Instrument instrument, @NonNull String message) Creates an instance of aIndicatorNoticerecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic IndicatorNoticebarDataOnTickerPath(@NonNull String indicatorName, @NonNull Instrument instrument) Builds theBAR_DATA_ON_TICKER_PATHnotice.@NonNull Stringcode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull StringReturns the value of theindicatorNamerecord component.@NonNull InstrumentReturns the value of theinstrumentrecord component.key()This notice's identity — seeIndicatorNotice.Key.@NonNull Notice.Levellevel()Returns the value of thelevelrecord component.@NonNull Stringmessage()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
BAR_DATA_ON_TICKER_PATH
Raised when an indicator that needs per-bar OHLCV is bound to a ticker stream, where volume and high/low are 24-hour rolling statistics.WARNrather thanERROR: the indicator still produces numbers, and a strategy may knowingly accept them.- See Also:
-
-
Constructor Details
-
IndicatorNotice
public IndicatorNotice(@NonNull @NonNull Notice.Level level, @NonNull @NonNull String code, @NonNull @NonNull String indicatorName, @NonNull @NonNull Instrument instrument, @NonNull @NonNull String message) Creates an instance of aIndicatorNoticerecord class.- Parameters:
level- the value for thelevelrecord componentcode- the value for thecoderecord componentindicatorName- the value for theindicatorNamerecord componentinstrument- the value for theinstrumentrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
key
This notice's identity — seeIndicatorNotice.Key. NarrowsNotice.key(), whose code-only default would let one indicator's notice hide another's. -
barDataOnTickerPath
public static IndicatorNotice barDataOnTickerPath(@NonNull @NonNull String indicatorName, @NonNull @NonNull Instrument instrument) Builds theBAR_DATA_ON_TICKER_PATHnotice.- Parameters:
indicatorName- registered name of the offending indicatorinstrument- the instrument whose group it was registered on- Returns:
- the notice
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
level
Returns the value of thelevelrecord component. -
code
-
indicatorName
Returns the value of theindicatorNamerecord component.- Returns:
- the value of the
indicatorNamerecord component
-
instrument
Returns the value of theinstrumentrecord component.- Returns:
- the value of the
instrumentrecord component
-
message
-