Price Action Channel Indicator
Created at 14 Sep 2013, 00:24
Price Action Channel Indicator
14 Sep 2013, 00:24
I'm looking for the Price Action Channel Indicator. Does anyone have experience with it?
Thanks,
Rainer
Replies
apresau
31 Mar 2014, 18:23
( Updated at: 21 Dec 2023, 09:20 )
RE:
Cerunnos said:
I'm looking for the Price Action Channel Indicator. Does anyone have experience with it?
Thanks,
Rainer
Perhaps this may help.
using cAlgo.API; using cAlgo.API.Indicators; namespace cAlgo.Indicators { [Indicator(IsOverlay = true, AccessRights = AccessRights.None)] public class MAHi_LoBands : Indicator { private MovingAverage MA; private MovingAverage MA_hi; private MovingAverage MA_lo; [Parameter(DefaultValue = 5)] public int Period { get; set; } [Parameter("MAType")] public MovingAverageType matype { get; set; } [Output("Main", Color = Colors.Gray)] public IndicatorDataSeries EnvelopeMain { get; set; } [Output("ChannelHigh", Color = Colors.DeepSkyBlue)] public IndicatorDataSeries ChannelHigh { get; set; } [Output("ChannelLow", Color = Colors.Tomato)] public IndicatorDataSeries ChannelLow { get; set; } protected override void Initialize() { MA = Indicators.MovingAverage(MarketSeries.Close, Period, matype); MA_hi = Indicators.MovingAverage(MarketSeries.High, Period, matype); MA_lo = Indicators.MovingAverage(MarketSeries.Low, Period, matype); } public override void Calculate(int index) { EnvelopeMain[index] = MA.Result[index]; ChannelHigh[index] = MA_hi.Result[index]; ChannelLow[index] = MA_lo.Result[index]; } } }
@apresau
Cerunnos
14 Sep 2013, 09:28
Price Action Channel Indicator
Done. The indicator Envelopes does the same...
/algos/indicators/show/281
@Cerunnos