GetPlusValue (int offset)
method
Retrieves plus SignalIndicator line value according to given offset.
Syntax
public double GetPlusValue (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);
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.