GetValue (int lineNumber)
method
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);
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.