Replies

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

Krenttrader
04 Feb 2014, 22:21

RE:

Krenttrader said:

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

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