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);
         }
     }
}