GetValue (int lineNumber, int offset)
method
Returns indicator value
Syntax
public double GetValue (int lineNumber,int offset)
Parameters
lineNumber — int
zero-based number of the indicator's line
offset — int
zero-based offset from last point
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.