Merhaba,
Aşağıdaki indikatörü ekleyip kullanabilirsiniz.

using System;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel;
using Matriks.Data.Identifiers;
using Matriks.Data.Symbol;
using Matriks.Engines;
using Matriks.Indicators;
using Matriks.Symbols;
using Matriks.AlgoTrader;
using Matriks.Trader.Core;
using Matriks.Trader.Core.Fields;
using Matriks.Trader.Core.TraderModels;
using Matriks.Lean.Algotrader.AlgoBase;
using Matriks.Lean.Algotrader.Models;
using Matriks.Lean.Algotrader.Trading;
namespace Matriks.Lean.Algotrader
{
[IndicatorInformationAttribute("ichiHhvLlv", IndicatorDrawingArea.OnDataSeries)]
[IndicatorLineInformationAttribute(new []
{
"YY1", "YY2"
})]
public class ichiHhvLlv : MatriksIndicator
{
[DefaultValue(9)]
public int TenkanSen
{
get; set;
}
[DefaultValue(26)]
public int KijunSen
{
get; set;
}
[DefaultValue(26)]
public int ChikouSpan
{
get; set;
}
[DefaultValue(52)]
public int SenkouSpanB
{
get; set;
}
[DefaultValue(26)]
public int HorizantalShift
{
get; set;
}
IchiMoku ichiMoku;
public sealed override void OnInit()
{
ichiMoku = IchiMokuIndicator(Symbol, SymbolPeriod, TenkanSen, KijunSen, ChikouSpan, SenkouSpanB, HorizantalShift);
}
decimal YY1, YY2;
public override void OnDataUpdate(int currentBar, decimal inputValue, DateTime barDateTime)
{
var barDataModel = GetBarData();
if (currentBar < SenkouSpanB)
{
SetLine(0, currentBar, 0);
SetLine(1, currentBar, 0);
return ;
}
YY1 = (ichiMoku.TenksanSenValue + ichiMoku.KijunSenValue) / 2;
YY2 = (HighestHigh(barDataModel, OHLCType.High, 52) + LowestLow(barDataModel, OHLCType.Low, 52)) / 2;
SetLine(0, currentBar, YY1);
SetLine(1, currentBar, YY2);
}
}
}
Unblocked Games offering a wide range of experiences: action, puzzle, platform, racing, clicker mechanics, strategy, sports, even horror.
https://unblocked1games.github.io