Returns an instance of the class Indicator, which calculates the value of a custom indicator.
SYNTAX
public Indicator iCustom (string name,HistoricalData data,object[] arguments)
PARAMETERS
name — string
Indicator name
data — HistoricalData
data for the calculation of the indicator
arguments — object[]
arguments custom indicator
RETURN
Indicator Returns an instance of class Indicator
EXAMPLE
The following code example shows how to use a custom indicator.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PTLRuntime.NETScript;
using System.Drawing;
using PTLRuntime.NETScript.Indicators;
namespace Indicators
{
public class CustomIndicator : NETStrategy
{
private Indicator indicator;
public override void Init()
{
indicator = Indicators.iCustom("3MASignal", CurrentData, 5, 10, 25, 1);
}
}
}