Merhaba,
TKE indikatörü hazır indikatörlerde ekli değil aşağıdaki linkten indikatörü indirip aşağıdaki adımları takip ederek sisteminize ekleyebilirsiniz.
TKE indikatörü
/dosya/czpxge9hi11x60vgxxl18lu8d/TkeKripexInd.mtxiq

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("TKEKripex", IndicatorDrawingArea.NewWindow)]
[IndicatorLineInformationAttribute(new []
{
"TKE"
})]
public class TKEKripex : MatriksIndicator
{
[DefaultValue(14)]
public int StochasticFastKPeriod
{
get; set;
}
[DefaultValue(6)]
public int StochasticFastDPeriod
{
get; set;
}
[DefaultValue(14)]
public int RsiPeriod
{
get; set;
}
[DefaultValue(14)]
public int CciPeriod
{
get; set;
}
[DefaultValue(14)]
public int MfiPeriod
{
get; set;
}
[DefaultValue(14)]
public int WillRPeriod
{
get; set;
}
[DefaultValue(14)]
public int MomPeriod
{
get; set;
}
[DefaultValue(7)]
public int UltKisaPeriod
{
get; set;
}
[DefaultValue(14)]
public int UltMediumPeriod
{
get; set;
}
[DefaultValue(28)]
public int UltUzunPeriod
{
get; set;
}
ULT ult;
MOM mom;
WILLIAMSR willamsr;
MFI mfi;
CCI cci;
RSI rsi;
StochasticFast stochasticFast;
public sealed override void OnInit()
{
ult = ULTIndicator(Symbol, SymbolPeriod, OHLCType.Close, UltKisaPeriod, UltMediumPeriod, UltUzunPeriod);
mom = MOMIndicator(Symbol, SymbolPeriod, OHLCType.Close, MomPeriod);
willamsr = WILLIAMSRIndicator(Symbol, SymbolPeriod, WillRPeriod);
mfi = MFIIndicator(Symbol, SymbolPeriod, MfiPeriod);
cci = CCIIndicator(Symbol, SymbolPeriod, OHLCType.Close, CciPeriod);
rsi = RSIIndicator(Symbol, SymbolPeriod, OHLCType.Close, RsiPeriod);
stochasticFast = StochasticFastIndicator(Symbol, SymbolPeriod, OHLCType.Close, StochasticFastKPeriod, StochasticFastDPeriod, MovMethod.Exponential);
DrawHorizantal(0);
DrawHorizantal(20);
DrawHorizantal(80);
}
decimal tke;
public override void OnDataUpdate(int currentBar, decimal inputValue, DateTime barDateTime)
{
tke = (stochasticFast.CurrentValue + rsi.CurrentValue + cci.CurrentValue + mfi.CurrentValue + willamsr.CurrentValue + mom.CurrentValue + ult.CurrentValue) / 7;
if (currentBar < UltUzunPeriod)
{
SetLine(0, currentBar, 0);
return ;
}
SetLine(0, currentBar, tke);
}
private decimal GetTypicalPrice(int barIndex)
{
if (!Instrument.SymbolBarData.Close.ContainsKey(barIndex)) return 0;
return (Instrument.SymbolBarData.Close[barIndex] + Instrument.SymbolBarData.High[barIndex] + Instrument.SymbolBarData.Low[barIndex]) / 3;
}
}
}
Unblocked Games offering a wide range of experiences: action, puzzle, platform, racing, clicker mechanics, strategy, sports, even horror.
https://unblocked1games.github.io
elinize sağlık