RealCode API
BaseScriptingTemplate Class
RealCode APIWBI.CommonBlocksBaseScriptingTemplate
The base class that all RealCode inherits. This is class provides all the properties and methods to the Me keyword
Declaration Syntax
Visual Basic
Public MustInherit Class BaseScriptingTemplate _
	Inherits Block
Members
All MembersMethodsProperties



IconMemberDescription
ActiveChart
Returns the Active Chart for which our code is executing (if executing on a chart)

ActiveList
Returns the active list during a list calculation (Market Indicator)

AutoLoop
Set to false in a RealCode Class constructor to perform your own looping (or no looping at all)

BarInterval
Returns the Bar Interval that we are calculating for

BarIntervalIsDays(Int32)
Returns true if the Bar Interval is set to the specified number of days

BarIntervalIsMinutes(Int32)
Returns true if the Bar Interval is set to the specified number of minutes

BarIntervalIsYears(Int32)
Returns true if the Bar Interval is set to the specified number of years

CurrentDate
Returns the current date for the currently calculating bar

CurrentIndex
Retunrs the current 0 based index for the bar we are calculating

CurrentSymbol
Returns the current symbol we are calculating for

EndOfDay(DateTime)
Converts a date without a time to the end of the day (4pm)

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
IndexForDate[([(DateTime])])
Returns the array index for the specified price history date

isDaily()()()
Returns true if the Bar Interval is set to 1 day

isFifteenMinute()()()
Returns true if the Bar Interval is set to 15 minute

isFirstBar
Used to check if this is the first bar for the current symbol

isFiveMinute()()()
Returns true if the Bar Interval is set to 5 minute

isHourly()()()
Returns true if the Bar Interval is set to hourly

isLastBar
Used to check if this is the last bar for the current symbol

isListCalc
Checks if the context is a Market indicator

isMinute()()()
Returns true if the Bar Interval is set to 1 minute

isMonthly()()()
Returns true if the Bar Interval is set to Monthly

isQuarterly()()()
Returns true if the Bar Interval is set to Quarterly

isWeekly()()()
Returns true if the Bar Interval is set to Weekly

isYearly()()()
Returns true if the Bar Interval is set to Yearly

Log
Used for Logging debug information

MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ParseEndOfDay(String)
Converts a string date to the end of day equivilent

Price
ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Volume
Remarks
You can use the functions and methods in this class by calling them directly or through the Me keyword
Examples
CopyVB.NET
plot = Price.Close
plot = Me.Price.Close ' same as above
Inheritance Hierarchy
Object
PaintableBlock
 Block
  BaseScriptingTemplate

Assembly: WBI.CommonBlocks (Module: WBI.CommonBlocks) Version: 1.0.25.0 (1.0.0.0)