Merhaba,
İstediğiniz explorer kodu aşağıdadır. Not olarak MatriksIQ'da normal 13 değeri 12 olarak, M13 ise 13 olarak gösteriliyor. İncelemenizi bu şekilde yaparsınız.
İyi çalışmalar
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Matriks.Data.Symbol;
using Matriks.Engines;
using Matriks.Lean.Algotrader.AlgoBase;
using Matriks.Lean.Algotrader.Models;
using Matriks.Indicators;
namespace Matriks.Lean.Algotrader
{
public class TdSequentialExp : Explorer
{
[Parameter(9)]
public int Setup;
[Parameter(4)]
public int Countdown;
TdSequential tdSequential;
public override void OnInit()
{
tdSequential = TdSequentialIndicator(Symbol, SymbolPeriod, Setup, Countdown);
AddColumns(8);
SetColumnText(0, "TdSequentialPrev");
SetColumnText(1, "TdSequential");
SetColumnText(2, "CountdownNumberPrev");
SetColumnText(3, "CountdownNumber");
SetColumnText(4, "Setup = 9");
SetColumnText(5, "Setup = M9");
SetColumnText(6, "Setup = 13");
SetColumnText(7, "Setup = M13");
}
public override bool OnExplorer(List<BarDataEventArgs> bardatas)
{
SetColumn(0, Ref(tdSequential, 1));
SetColumn(1, tdSequential.CurrentValue);
SetColumn(2, Ref(tdSequential.TdSeqCountdownNumber, 1));
SetColumn(3, tdSequential.TdSeqCountdownNumber.CurrentValue);
if (tdSequential.CurrentValue == 9 || Ref(tdSequential, 1) == 9)
{
SetColumn(4, "AL");
return true;
}
if (tdSequential.CurrentValue == -9 || Ref(tdSequential, 1) == -9)
{
SetColumn(4, "SAT");
return true;
}
if (tdSequential.CurrentValue == 9.1m || Ref(tdSequential, 1) == 9.1m)
{
SetColumn(5, "AL");
return true;
}
if (tdSequential.CurrentValue == -9.1m || Ref(tdSequential, 1) == -9.1m)
{
SetColumn(5, "SAT");
return true;
}
if (tdSequential.TdSeqCountdownNumber.CurrentValue == 12 || Ref(tdSequential.TdSeqCountdownNumber, 1) == 12)
{
SetColumn(6, "AL");
return true;
}
if (tdSequential.TdSeqCountdownNumber.CurrentValue == -12 || Ref(tdSequential.TdSeqCountdownNumber, 1) == -12)
{
SetColumn(6, "SAT");
return true;
}
if (tdSequential.TdSeqCountdownNumber.CurrentValue == 13 || Ref(tdSequential.TdSeqCountdownNumber, 1) == 13)
{
SetColumn(7, "AL");
return true;
}
if (tdSequential.TdSeqCountdownNumber.CurrentValue == -13 || Ref(tdSequential.TdSeqCountdownNumber, 1) == -13)
{
SetColumn(7, "SAT");
return true;
}
return false;
}
}
}