iIchimoku (HistoricalData data, int tenkan_sen, int kijun_sen, int senkou_span)
method
Returns an instance of the class iIchimoku, which calculates the value of the indicator Ichimoku.
Syntax
public iIchimoku iIchimoku (HistoricalData data,int tenkan_sen,int kijun_sen,int senkou_span)
Parameters
data — HistoricalData
Data for the calculation of the indicator
tenkan_sen — int
tenkan sen
kijun_sen — int
kijun sen
senkou_span — int
senkou span
Return
iIchimoku
Returns an instance of the class iIchimoku
Example
The following code example shows how to use the indicator Ichimoku.
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 IndicatorExample : NETStrategy
{
private Indicator indicator;
public override void Init()
{
indicator = Indicators.iIchimoku(CurrentData, 9, 26, 52);
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.