Retrieves main SignalIndicator line value according to given offset.
SYNTAX
public double GetMainValue (int offset)
PARAMETERS
offset — int
RETURN
double
EXAMPLE
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using PTLRuntime.NETScript;
namespace SignalIndicatorExamples
{
public class SignalIndicatorExamples : NETStrategy
{
public override void OnQuote()
{
//If you use this method you can get indicators data
Indicator Stochastic = Indicators.iStochastic(CurrentData,10,15,3, MAMode.EMA);
//Also you can use methods of the class
double Stochastic_main = Indicators.iStochastic(CurrentData,10,15,3, MAMode.EMA).GetMainValue(1);
double Stochastic_plus = Indicators.iStochastic(CurrentData,10,15,3, MAMode.EMA).GetPlusValue(1);
}
}
}