0 beğenilme 0 beğenilmeme
746 kez görüntülendi
bu kodlamayı exp. mov 8 yukarı kesenleri nasıl revize edebiliriz acaba?
bir cevap ile ilgili: mav 8 üzeri kapanış yapanlar
Explorer kategorisinde (32 puan) tarafından | 746 kez görüntülendi

1 cevap

1 beğenilme 0 beğenilmeme

Merhaba,

Aşağıdaki explorer kodunu kullanabilirsiniz.

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 MovCrossExp : Explorer
	{
		[Parameter(8)]
		public int MovPeriod;
		
		[Parameter(MovMethod.Exponential)]
		public MovMethod movMethod;
		
		MOV mov;
		public override void OnInit()
		{
			AddColumns(2);
			SetColumnText(0, "Mov");
			SetColumnText(1, "Close");
			mov = MOVIndicator(Symbol, SymbolPeriod, OHLCType.Close, MovPeriod, movMethod);
		}

		public override bool OnExplorer(List<BarDataEventArgs> bardatas)
		{
			var bardata=GetBarData();
			var close=bardatas.FirstOrDefault().BarData.Close;
			SetColumn(0, Math.Round(mov.CurrentValue, 4));
			SetColumn(1, Math.Round(close, 4));
			if (CrossAbove(bardata,mov,OHLCType.Close))
				return true;
			return false;
		}
	}
}

 

Unblocked Games offering a wide range of experiences: action, puzzle, platform, racing, clicker mechanics, strategy, sports, even horror. https://unblocked1games.github.io
(16,379 puan) tarafından
Hoş geldiniz, Matriks Destek Platformu sizlere sorularınızın hızlıca cevaplanması için bir ortam sağlar. Sorduğunuz ve cevapladığınız soruların ve yorumlarınızın aldığı oylar üzerinden puan kazanırsınız. Puan sistemine bağlı kampanyamızla ücretsiz kullanım avantajlarından faydalanabilirsiniz.



9,808 soru
9,772 cevap
5,277 yorum
55,230 kullanıcı