Indicator¶
Summary¶
Base class for Indicators.
Remarks¶
Contains all necessary market information, provides access to built-in indicators and provides framework for convenient indicators' creation.
Signature
1 |
|
Namespace¶
cAlgo.API
Examples¶
1 2 3 4 5 6 |
|
1 2 3 4 5 6 |
|
1 2 3 4 5 6 7 8 9 |
|
1 2 3 4 5 6 7 8 9 |
|
Methods¶
Calculate¶
Summary
Calculate the value(s) of indicator for the given index.
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
index | int | The index of calculated value. |
Return Value
void
Examples
1 2 3 4 5 6 |
|
ToString¶
Summary
The name of the indicator derived class.
Signature
1 |
|
Return Value
string
Examples
1 2 3 4 |
|
Properties¶
IsRealTime¶
Signature
1 |
|
Return Value
bool
IsLastBar¶
Summary
Returns true, if Calculate is invoked for the last bar
Signature
1 |
|
Return Value
bool
Examples
1 2 3 4 5 6 7 |
|
IndicatorArea¶
Summary
Defines the area where the indicator is placed.
Signature
1 |
|
Return Value
IndicatorArea
Account¶
Summary
Contains information of the current account.
Signature
1 |
|
Return Value
IAccount
Examples
1 2 |
|
Last update: June 1, 2023