Hi,
I'm new (again) to Multicharts and I miss the Donchian Channel indicator.
I found a code doing the forum search, but I'm unable to create the indicator.
Actually I'm only interested in the midline of the Donchian Channel
This is the code I found. Could someone please help me how to create an indicator out of this.
Thanks a lot in advance...!
// Donchian Channel
//
// http://www.tradersxchange.com
Inputs:
Base(close),
Length(13),
ShowAvg(true);
Variables:
DonHigh(0),
DonLow(0),
DonAvg(0);
DonHigh = Highest( base, Length);
DonLow = Lowest( base, Length);
DonAvg = ((DonHigh + DonLow) / 2 );
Plot1(DonHigh, "DonchianHi");
Plot2(DonLow, "DonchianLo");
if ShowAvg = true
then Plot3(DonAvg, "DonchianAvg");
Donchian Channel Indicator
- jwebster503
- Posts: 24
- Joined: 13 Mar 2014
- Has thanked: 9 times
- Been thanked: 14 times
Re: Donchian Channel Indicator
Hi, timokrates.
I'll ask the first question that anybody able to help you will have... You've posted into the MultiCharts.NET forum, which means you'd get either C# or VB.NET language for your indicator (which would you want?). However, you mention "MultiCharts", which takes PowerLanguage, which is a different language and product altogether. Can you please verify you're either looking for "MultiCharts.NET" (in this forum topic), or "MultiCharts", which should be posted in a different forum? Either way, there are a ton of helpful people who can assist you, but you'll need to make sure you're asking about the product you have to make sure you get the right language.
Thanks,
Jeff
I'll ask the first question that anybody able to help you will have... You've posted into the MultiCharts.NET forum, which means you'd get either C# or VB.NET language for your indicator (which would you want?). However, you mention "MultiCharts", which takes PowerLanguage, which is a different language and product altogether. Can you please verify you're either looking for "MultiCharts.NET" (in this forum topic), or "MultiCharts", which should be posted in a different forum? Either way, there are a ton of helpful people who can assist you, but you'll need to make sure you're asking about the product you have to make sure you get the right language.
Thanks,
Jeff
-
- Posts: 7
- Joined: 31 Oct 2014
- Has thanked: 4 times
Re: Donchian Channel Indicator
Thanks a lot for your reply.
I just started to use Multicharts.net again and missed the indicator, which is important for my trading.
Any help would be great as I have no idea how to code this or implement the code in Multicharts.net.
I just started to use Multicharts.net again and missed the indicator, which is important for my trading.
Any help would be great as I have no idea how to code this or implement the code in Multicharts.net.
-
- Posts: 7
- Joined: 31 Oct 2014
- Has thanked: 4 times
Re: Donchian Channel Indicator
Any help?
Is that hard to do?
Sorry as mentioned before, I have no idea how...
Is that hard to do?
Sorry as mentioned before, I have no idea how...
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: Donchian Channel Indicator
It's not at all hard to do, but I'm not sure if you want help or should we make it for you?Any help?
Is that hard to do?
Sorry as mentioned before, I have no idea how...
For help, you may want to read some MultiCharts .NET tutorials. You can also look at the standard indicators that come with MultiCharts .NET for examples, or search the forum. If you look at how to create inputs and plot lines, you likely know enough to convert this indicator to MultiCharts .NET.
-
- Posts: 7
- Joined: 31 Oct 2014
- Has thanked: 4 times
Re: Donchian Channel Indicator
Thanks, yes you are right.
It should be doable even for someone without any experience here.
I just thought it would be a copy and paste sort of thing for someone who has the necessary knowledge. Or maybe the indicator would already exist, because it is quite common.
It should be doable even for someone without any experience here.
I just thought it would be a copy and paste sort of thing for someone who has the necessary knowledge. Or maybe the indicator would already exist, because it is quite common.
-
- Posts: 7
- Joined: 31 Oct 2014
- Has thanked: 4 times
Re: Donchian Channel Indicator
It looks like I would need some further help...
I tried to grab the code of the price channel indicator, which should be quite similiar to the donchian channel indicator (just without the midline I need) and changed the input parameters.
That obviously did not work. I guess that everyone here will laugh about what I tried...
Needless to say that the result was not good...
Here is what I tried. Any help would be highly appreciated. Thanks...!
I tried to grab the code of the price channel indicator, which should be quite similiar to the donchian channel indicator (just without the midline I need) and changed the input parameters.
That obviously did not work. I guess that everyone here will laugh about what I tried...
Needless to say that the result was not good...
Here is what I tried. Any help would be highly appreciated. Thanks...!
Code: Select all
using System;
using System.Drawing;
namespace PowerLanguage.Indicator
{
[SameAsSymbol(true)]
public class donchian_Channel : IndicatorObject
{
private VariableSeries<Double> m_lowerband;
private VariableSeries<Double> m_upperband;
private IPlotObject Plot1;
private IPlotObject Plot2;
public donchian_channel(object ctx) :
base(ctx){
length = 20;
}
[Input]
Base(close),
Length(13),
ShowAvg(true);
Variables:
DonHigh(0),
DonLow(0),
DonAvg(0);
DonHigh = Highest( base, Length);
DonLow = Lowest( base, Length);
DonAvg = ((DonHigh + DonLow) / 2 );
Plot1(DonHigh, "DonchianHi");
Plot2(DonLow, "DonchianLo");
if ShowAvg = true
then Plot3(DonAvg, "DonchianAvg");
}
}
}
}
}
}