OutputAttribute constructor
constructor · OutputAttribute · cAlgo.API
DesktopCLICloud
Initializes a new instance of the OutputAttribute and sets the name.
Definition
public OutputAttribute(string lineName)
OutputAttribute(lineName: str)
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
lineName | string | str | The name given to the output plot |
Examples
public partial class OutputSample : Indicator
{
public override void Calculate(int index)
{
Result[index] = Bars.ClosePrices[index];
}
}
def calculate(self, index):
api.Result[index] = api.Bars.ClosePrices[index]
{
"AccessRights": "None",
"IsOverlay": true,
"LineOutputs": [
{
"Name": "Result",
"DisplayName": "Main"
}
]
}