Merhaba,
Aşağıdaki linkten kullanıcı indikatörünü indirip kullanabilirsiniz.
https://destek.matriksdata.com/?qa=blob&qa_blobid=15343175517270464793
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("VIOPVKAZKAYIP", IndicatorDrawingArea.NewWindow)]
[IndicatorLineInformationAttribute(new []
{
"L1", "L2"
})]
public class VIOPVKAZKAYIP : MatriksIndicator
{
public sealed override void OnInit()
{
}
public override void OnDataUpdate(int currentBar, decimal inputValue, DateTime barDateTime)
{
if (currentBar < 1)
{
SetLine(0, currentBar, 0);
SetLine(1, currentBar, 0);
return;
}
var H = Instrument.SymbolBarData.High[currentBar];
var L = Instrument.SymbolBarData.Low[currentBar];
var C = Instrument.SymbolBarData.Close[currentBar -1];
var L1 = (H - C) / C * 100m;
var L2 = (L - C) / C * 100m;
SetLine(currentBar, L1);
SetLine(1, currentBar, L2);
}
}
}