Click or drag to resize

ScannerBase Class

Base class to create a custom scanner column
Inheritance Hierarchy
SystemObject
  ArthaChitra.Core.ViewModelNotifyPropertyBase
    ArthaChitra.Core.ViewModelServiceBase
      ArthaChitra.Model.SharpScriptSharpScriptBase
        ArthaChitra.Model.MarketScannerScannerBase

Namespace: ArthaChitra.Model.MarketScanner
Assembly: ArthaChitra.Core (in ArthaChitra.Core.dll) Version: 2.0.6.0
Syntax
C#
public abstract class ScannerBase : SharpScriptBase, 
	IObserver<Level1EventArgs>, IObserver<IEnumerable<Level1EventArgs>>, 
	IObserver<Level2EventArgs>, IViewModel, IInstrumentEnumerable, IObserver<long>

The ScannerBase type exposes the following members.

Constructors
 NameDescription
Public methodScannerBase 
Top
Properties
 NameDescription
Public propertyAccount Gets or sets the Account
Public propertyCellConditionItems Gets or sets the cell condition items
Public propertyCellConditonsSerializer 
Public propertyDebounceInterval Gets the debounce interval
Protected propertyDialogService Opens a IDialogService dialog
(Inherited from ServiceBase)
Protected propertyDispatcher Gets the dispatcher
(Inherited from SharpScriptBase)
Public propertyDisplayName Gets the display name
(Inherited from SharpScriptBase)
Public propertyDisplayValue The value to be displayed
Public propertyError Gets the Error string
(Inherited from ServiceBase)
Protected propertyFileService Opens a IFileService dialog
(Inherited from ServiceBase)
Public propertyHasLevel1Stream Has Level-I stream
Public propertyHasLevel2Stream Has Level-II stream
Public propertyHeaderString Header string
Public propertyInstrument Gets or sets the instrument
Public propertyInstruments Gets or sets the IInstrument array
Protected propertyIsRefreshObserved True if OnNextRefresh is overriden in user code.
Public propertyIsTriggerVisible If true, then the Triggers can be configured via the column selector
Public propertyItem Gets the IDataErrorInfo error string
(Inherited from ServiceBase)
Protected propertyMessageBox Opens a IMessageBoxService dialog
(Inherited from ServiceBase)
Public propertyName Gets the name
(Inherited from SharpScriptBase)
Public propertyObserveAllMarketDataTypes Observe all MarketDataType types
Protected propertySingletonService Opens a ISingletonService dialog
(Inherited from ServiceBase)
Public propertyState Gets the current State of the script
(Inherited from SharpScriptBase)
Public propertyTemplate
(Overrides SharpScriptBaseTemplate)
Top
Methods
 NameDescription
Protected methodAddCellCondition 
Protected methodAddInstrument Add a secondary instrument
Protected methodAlert(String, String) Alert
Protected methodAlert(String, String, TimeSpan) Alert
Protected methodAlert(String, Priority, Brush, String) Alert
Protected methodAlert(String, Priority, Brush, String, TimeSpan) Alert
Protected methodAlert(String, IInstrument, Priority, Brush, String, TimeSpan) Shoots an alert. The alert is triggered only when the State is Realtime
(Inherited from SharpScriptBase)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize
(Inherited from SharpScriptBase)
Public methodGetBindingString The binding string. The default binded property is DisplayValue
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetPosition(Boolean) Returns the position of the selected account and the instrument of the row with ProductType == Margin
Protected methodGetPosition(ProductType) Returns the position of the select account and the instrument of the row with the specified productType
Protected methodGetRealTimeData Returns the realTimeData for the specified marketDataType
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodInvokeAsync Invoke any action. It is recommended to draw any [!:ChartObject.DrawingBase] by invoking this method
(Inherited from SharpScriptBase)
Protected methodLog(String) Logs a message with Low
(Inherited from SharpScriptBase)
Protected methodLog(Priority, String) Logs a message with the specified Priority
(Inherited from SharpScriptBase)
Protected methodLog(Priority, Brush, String) Logs a message with the specified Priority and defined brush
(Inherited from SharpScriptBase)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodNotifyPropertyChanged
(Inherited from SharpScriptBase)
Protected methodOnLevel1 Level1 stream
Protected methodOnNextRefresh If overriden will subscribe to the refresh stream
Protected methodOnPosition 
Protected methodOnRender Whne overriden will render the content as drawn by user. Assigning a value to the DisplayValue property will call the method
Protected methodOnStateChange Invoked when the State changes
(Inherited from SharpScriptBase)
Protected methodPlaySound Play a sound file as located in the folder ~\Documents\ArthaChitra 2\Sounds
(Inherited from SharpScriptBase)
Protected methodPrint(String, String) Prints a message with Low
(Inherited from SharpScriptBase)
Protected methodPrint(Brush, String, String) Prints a message with a defined foreground brush
(Inherited from SharpScriptBase)
Protected methodPrint(Priority, String, String) Prints a message with the defined Priority
(Inherited from SharpScriptBase)
Protected methodRound Rounds the value with the factor as defined in Options > General tab > RoundFactor
(Inherited from SharpScriptBase)
Protected methodShare Share messages via to social media SocialType The messages will be transmitted only when the state is Realtime
(Inherited from SharpScriptBase)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventPropertyChanged
(Inherited from NotifyPropertyBase)
Top
See Also