Returns the indicator value in the last point
SYNTAX
public double GetValue (int lineNumber)
PARAMETERS
lineNumber — int
zero-based number of the indicator's line
RETURN
double calculated value
EXAMPLE
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using PTLRuntime.NETScript;
namespace IndicatorClassExamples
{
public class IndicatorClassExamples : NETStrategy
{
public override void OnQuote()
{
Indicator ind1 = Indicators.iAC(CurrentData);
//Method
Print(ind1.GetValue(0,0));
//Properties
Print(ind1.Count);
Print(ind1.Data);
Print(ind1.Name);
Print(ind1.Parameters);
}
}
}