GetUpperValue (int offset)
method
Retrieves up line value according to given offset.
Syntax
public double GetUpperValue (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 UpperLowerIndicatorExamples
{
public class UpperLowerIndicatorExamples : NETStrategy
{
public override void OnQuote()
{
//If you use this method you can get indicators data
Indicator Fractals = Indicators.iFractals(CurrentData);
//Also you can use methods of the class
double Fractals_upper = Indicators.iFractals(CurrentData).GetUpperValue(1);
double Fractals_lower = Indicators.iFractals(CurrentData).GetLowerValue(1);
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.