Description
using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
namespace cAlgo
{
[Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class HLAveragesTFStochMulti : Indicator
{
[Parameter("Custom TF", DefaultValue = "Hour")]
public TimeFrame customTimeFrame { get; set; }
[Output("Result1", LineColor = "Green")]
public IndicatorDataSeries Result1 { get; set; }
[Output("Result2", LineColor = "Orange")]
public IndicatorDataSeries Result2 { get; set; }
private HLAveragesTFStoch hlcurrentTF;
private HLAveragesTFStoch hlcustomTF;
protected override void Initialize()
{
hlcurrentTF = Indicators.GetIndicator<HLAveragesTFStoch>(Bars.TimeFrame);
hlcustomTF = Indicators.GetIndicator<HLAveragesTFStoch>(customTimeFrame);
}
public override void Calculate(int index)
{
Result1[index] = hlcustomTF.Result[index];
Result2[index] = hlcurrentTF.Result[index];
}
}
}
srm_bcn
Joined on 01.09.2019
- Distribution: Free
- Language: C#
- Trading platform: cTrader Automate
- File name: HLAveragesTFStochMulti.algo
- Rating: 0
- Installs: 1181
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.