HighestHigh LowestLow Indicator
HighestHigh LowestLow Indicator
04 Feb 2014, 12:17
I need help in HighestHigh LowestLow indicator. Can someone help. The indicator is in this link: My request is in the comment section.
/algos/indicators/show/379
Thank you,
Kent
Replies
virtuesoft
05 Feb 2014, 14:11
RE: RE:
Hello Kent,
Try this...
using cAlgo.API; using cAlgo.API.Indicators; namespace cAlgo.Indicators { [Indicator("Custom Donchian", IsOverlay = true)] public class CustomDonchian : Indicator { [Parameter(DefaultValue = 15, MinValue = 1)] public int PeriodsHigh { get; set; } [Parameter(DefaultValue = 15, MinValue = 1)] public int PeriodsLow { get; set; } [Output("Top", Color = Colors.Red)] public IndicatorDataSeries Top { get; set; } [Output("Bottom", Color = Colors.Blue)] public IndicatorDataSeries Bottom { get; set; } [Output("Middle", Color = Colors.Green)] public IndicatorDataSeries Middle { get; set; } public override void Calculate(int index) { Top[index] = MarketSeries.High.Maximum(PeriodsHigh); Bottom[index] = MarketSeries.Low.Minimum(PeriodsLow); double difference = MarketSeries.High.Maximum(PeriodsHigh) - MarketSeries.Low.Minimum(PeriodsLow); Middle[index] = MarketSeries.Low.Minimum(PeriodsLow) + (difference / 2); } } }
@virtuesoft
Krenttrader
05 Feb 2014, 16:33
RE: RE: RE:
Thank you so much, virtuesoft. I hope you guys are making pips with this revised indicator. Got me 100 pips so far today.
virtuesoft said:
Hello Kent,
Try this...
using cAlgo.API; using cAlgo.API.Indicators; namespace cAlgo.Indicators { [Indicator("Custom Donchian", IsOverlay = true)] public class CustomDonchian : Indicator { [Parameter(DefaultValue = 15, MinValue = 1)] public int PeriodsHigh { get; set; } [Parameter(DefaultValue = 15, MinValue = 1)] public int PeriodsLow { get; set; } [Output("Top", Color = Colors.Red)] public IndicatorDataSeries Top { get; set; } [Output("Bottom", Color = Colors.Blue)] public IndicatorDataSeries Bottom { get; set; } [Output("Middle", Color = Colors.Green)] public IndicatorDataSeries Middle { get; set; } public override void Calculate(int index) { Top[index] = MarketSeries.High.Maximum(PeriodsHigh); Bottom[index] = MarketSeries.Low.Minimum(PeriodsLow); double difference = MarketSeries.High.Maximum(PeriodsHigh) - MarketSeries.Low.Minimum(PeriodsLow); Middle[index] = MarketSeries.Low.Minimum(PeriodsLow) + (difference / 2); } } }
@Krenttrader
virtuesoft
06 Feb 2014, 10:38
RE: RE: RE: RE:
No problem Kent. I do use a donchian channel in my trading but I don't use the middle line. I trade a breakout of the channel in a similar way to the original Turtle rules. I only trade the daily charts.
Is it possible to automate your method? If so, let me know the rules and I'll give it a go. gary.virtuesoft@gmail.com
@virtuesoft
Krenttrader
04 Feb 2014, 22:21
RE:
Krenttrader said:
Okay since no one cares about fixing this indicator, I'll throw in my methodology.
Chart 30m
HighestHigh_LowestLow : 15 15
Manual calculation: 1. On current developing candle, calculate the average between upper band and lowerband
Plot in manually the median band
1. If price is higher than the median band, it is a buy bias
2. If price is lower than the median band, it is a sell bias
There are 3 more indicators using them as filters that I will share when someone helps me alter this indicator.
Check it out yourself, you may able be able to figure you what the other indicators that I am using.
I have been using this methodology for 9 months now with success.
@Krenttrader