IndicatorAttribute.Name
property · IndicatorAttribute · cAlgo.API
DesktopCLICloud
The name of the Indicator.
Definition
public string Name {get;}
indicatorAttribute.Name: str
Returns string
Examples
public partial class NameSample : Indicator
{
protected override void Initialize()
{
var attribute = (IndicatorAttribute)Attribute.GetCustomAttribute(GetType(), typeof(IndicatorAttribute));
Print("Indicator name: {0}", attribute.Name ?? GetType().Name);
}
public override void Calculate(int index)
{
}
}
def initialize(self):
api.Print("Indicator initialized")
{
"AccessRights": "None",
"IsOverlay": true
}