Description
Quality line
using System;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
namespace cAlgo
{
[Indicator(IsOverlay = true, TimeZone = TimeZones.EasternStandardTime, AccessRights = AccessRights.None)]
public class QualityLine : Indicator
{
[Parameter("Kijun sen", DefaultValue = 26, MinValue = 1)]
public int K_Period { get; set; }
[Parameter("shift", DefaultValue = 26)]
public int K_Shift { get; set; }
[Output("Quality line", LineStyle = LineStyle.Solid, LineColor = "red")]
public IndicatorDataSeries KI_Result { get; set; }
private IchimokuKinkoHyo _ICHI;
protected override void Initialize()
{
_ICHI = Indicators.IchimokuKinkoHyo(9, K_Period, 52);
}
public override void Calculate(int index)
{
KI_Result[index+K_Shift]=_ICHI.KijunSen.Last(0);
}
}
}
mr.ch1371
Joined on 11.08.2024
- Distribution: Free
- Language: C#
- Trading platform: cTrader Automate
- File name: Quality Line_withSourceCode.algo
- Rating: 0
- Installs: 393
- Modified: 20/08/2024 12:24
Note that publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section, please use the Copyright Infringement Notification form to submit a claim.
Comments
Log in to add a comment.
No comments found.