PDA

View Full Version : we need indicators !!!


Elmi
06-30-2007, 10:41 AM
dear forum I try to use NT and replace TS but NT is very poor on indicators.
I ask someone to help and he wanted 200 USD for each !!
I prefer to stay with TS !!! or you would try to stick with NT.

whitmark
06-30-2007, 01:30 PM
Elmi . . . it would be helpful if you could tell us more about what indicators you are interested in and whether 1) the indicator is missing altogether in NT or 2) it exists but is missing certain functionality relative to what you are use to working with. IMHO, Ninja has some very rich and compelling features that may be very useful to you and worth your consideration (and patience) while the suite of indicators gets filled out.

Regards,

Whitmark

OUFan
06-30-2007, 01:38 PM
Elmi,

I agree, NT is limited in indicators compared to TS. I am very good at writing indicators in TS Easy Language, but Ninja Script is very hard if you are not a programmer by profession. I am a trader and want to write my own indicators without having someone to translate my code. I have had a few indicators translated and they were very expensive to get this done so I probably want do that again. I can write simple indicators in Ninja Script, but I am talking about the ones that you really want to trade with that are easy in TS, but not in Ninja. I think Ninja should rethink their language that they use. If you are like me you are a Trader first and then a programmer, with Ninja Script you need to be programmer first and then a trader. They also need some better instructions on writing indicators with their code if they continue with Ninja Script. The examples they show are easy indicators that most people don't trade with anyway. They need some real classes with their best programmers helping us.

NinjaTrader_Ray
06-30-2007, 01:47 PM
Thanks for your suggestions. We will be offering training courses later this year.

I am curious what indicators you feel are missing? When I look at what TS has for indciators, we have a lot more! We have been adding programming features as the demand is known, so if there is something you would like to see, please state what they are.

Thanks in advance.

OUFan
06-30-2007, 02:00 PM
Ray,

What you are missing is that are 100's of indicators that you can find for TS. Some that are written by some really great traders, but you google for Ninja indicators there are very view. I write indicators that draw trendlines like the gartley patterns and triangle pivot intercepts and indicators that are time adjusted and dynamiclly cycle adjusted. Fairly easy in TS, but I have pulled my hair out with Ninja Script trying to write the same indicators. I have been a futures trader for over 28 years and your language is very hard for us that are pure traders, not programmers. Sure I can write easy moving average and double stoch indicators in your language, but the indicators that I really trade with that are dynamic and self adjusting are beyond any examples that I have seen.

I also tried using someone to translate some of them and they are too expensive and they could never get them to work like they do in Trade Station. I really like your platform for order entry, but your programming is too difficult unless you soon start to offer some real classes in Ninja Script and I don't mean just simple indicators.

You asked for us to state what we really want. Either some really good classes on Ninja Script or someone that can translate our code for a reasonable price.

NinjaTrader_Ray
06-30-2007, 02:04 PM
Thanks for the clarification. There is a growing base of 3rd party indicators for NinjaTrader. Rome for sure was not built in a day. We are only a few months after the production release of NT 6.0. Please be patient and give us some time as the NinjaTrader ecosystem grows.

Gumphrie
06-30-2007, 06:03 PM
I am a programmer first and trader second. If someone wants to give me some indicators to translate into Ninjascript I'll give it a go for free if I can use them too.

Bluemaze
07-06-2007, 11:07 AM
I am a engineer first and a trader second, and i dabble in programming.

I have been working all day on trying to convert a Amibroker indicator in NT. Still working on it, but still too many compile errors :-)
It is a public indicator called REI from Thomas ******.

The AFL code is:
HighMom = H - Ref( H, -2 );
LowMom = L - Ref( L, -2 ); Cond1 = ( H >= Ref( L,-5) OR H >= Ref( L, -6 ) );
Cond2 = ( Ref( H, -2 ) >= Ref( C, -7 ) OR Ref( H, -2 ) >= Ref( C, -8 ) );
Cond3 = ( L <= Ref( H, -5 ) OR L <= Ref( H, -6) );
Cond4 = ( Ref( L, -2 ) <= Ref( C, -7 ) OR Ref( L, -2 ) <= Ref( C, -8 ) );
Cond = ( Cond1 OR Cond2 ) AND ( Cond3 OR Cond4 );
Num = IIf( Cond, HighMom + LowMom, 0 );
Den = Abs( HighMom ) + Abs( LowMom );
TDREI = 100 * Sum( Num, 5 )/Sum( Den, 5 ) ;
graph0 = TDREI;


Any help conventing this to NT would be greatly appreciated.

Gumphrie
07-06-2007, 11:20 AM
Sure, send me what you have and a screenshot of what its supposed to look like.

I've converted numerous TradeStation indicators, no AmiBroker ones yet.

Gumphrie
07-06-2007, 11:38 AM
The mql code here is more readable for translation I think :

http://www.forex-tsd.com/suggestions-trading-systems/146-ind-td-******-3-1-a-3.html#post7448

Bluemaze
07-06-2007, 01:37 PM
The original link is:

http://www.amibroker.com/newsletter/02-2000.html

Bluemaze
07-06-2007, 03:32 PM
protected override void Initialize()
{
Add(new Plot(Color.Orange, PlotStyle.Line, "PlotREI"));
Add(new Line(Color.DarkOliveGreen, 70, "Overbought"));
Add(new Line(Color.Magenta, 30, "Oversold"));
CalculateOnBarClose = true;
Overlay = false;
PriceTypeSupported = false;
cond = false;
cond1 = false;
cond2 = false;
cond3 = false;
cond4 = false;
TDREI = new DataSeries(this);
highmom = 0;
lowmom = 0;
num = new DataSeries(this);
den = new DataSeries(this);

}

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.

highmom = (High[0]-High[2]);
lowmom = (Low[0]-Low[2]);

cond1 = ( High[0] >= Low[5]) || (High[0] >= Low[6] );
cond2 = ( High[2] >= Close[7] || High[2] >= Close[8] );
cond3 = ( Low[0] <= High[5] || Low[0] <= High[6] );
cond4 = ( Low[2] <= Close[7] || Low[2] <= Close[8] );

cond = ( cond1 || cond2 ) && ( cond3 || cond4 );

num.Set( cond ? highmom + lowmom : 0 );
den.Set( Math.Abs(highmom) + Math.Abs(lowmom) );

TDREI.Set( 100 * ( SUM(num, period)[0] / SUM(den, period)[0] ) );

PlotREI.Set(TDREI[0]);
}

NinjaTrader_Ray
07-06-2007, 03:36 PM
If you check your log tab, likely an error "Index out of bounds..."

try adding as the first line in the OnBarUpdate() method:

if (CurrentBar < 8)
return;

Reason is, you are accessing "bars ago" values for bars that does not yet exist on the chart as you move from left to right.

Gumphrie
07-06-2007, 03:57 PM
Ok, here is my attempt. Perhaps someone can verify it against another platform.

Bluemaze
07-06-2007, 03:59 PM
It worked,
Thanx much Ray, first day on NT here, I am as green as they get :-)

Bluemaze
07-06-2007, 04:04 PM
Thanx much also Gump, I looked at your code and found one improvement I could make to mine.

NinjaTrader_Ray
07-06-2007, 04:09 PM
It worked,
Thanx much Ray, first day on NT here, I am as green as they get :-)


Welcome aboard!

FireFly
07-08-2007, 07:15 AM
I have also switched from Tradestation to Ninjatrader and I'm glad I did.
It also took me a while to get familiar with ninjascript (and I'm still working on it, C# is new for me too) but it is WAY more powerful than Tradestation EL.

I still feel that the very simple things are more quickly implemented in EL than in NTscript, however the more complicated stuff is easier in NTscript. One of the reasons is that you can structure your code much better in NTscript than in EL.

For the people who need more indicators, maybe a seperate section in this supportforum can be setup where NT users can share their indicators. Personally I prefer that the developers at Ninjatrader company focus on debugging and adding new features to NT instead of translating hundreds of indicators.

dwalls
07-09-2007, 10:51 AM
Hello, Would it be possible for NinjaTrader to create the Tim Tillson's T3 Moving Average Indicators...the T3, T5 and T8. They are fairly common indicators. I would like to be able to then create a crossover strategy using the T3's not unlike the "Sample moving average crossover" strategy provided in your strategies folder. Maybe you could make just the one indicator and be able to adjust the periods instead of making three seperate indicators. I just need to have them seperate to create the crossover strategy.

A version of the indicator is located at http://www.amibroker.com/library/detail.php?id=852.

Another sample is in Metastock code:This is the 3 period:
e1:=Mov(C,3,E);
e2:=Mov(e1,3,E);
e3:=Mov(e2,3,E);
e4:=Mov(e3,3,E);
e5:=Mov(e4,3,E);
e6:=Mov(e5,3,E);
c1:=-.7*.7*.7;
c2:=3*.7*.7+3*.7*.7*.7;
c3:=-6*.7*.7-3*.7-3*.7*.7*.7;
c4:=1+3*.7+.7*.7*.7+3*.7*.7;
c1*e6+c2*e5+c3*e4+c4*e3;

Thanks for your help.

NinjaTrader_Ray
07-09-2007, 11:27 AM
Hi,

I will add this request to our list of features for future consideration. I can not guarantee if and when we could accomodate this request at this time.

dwalls
07-09-2007, 03:54 PM
If anyone in this forum knows how to write of convert the code below for the T3's it would be greatly appreciated. I also have attached the code from eSignal. Maybe it can help.

// NOTE:
// This efs requires amStudies.efsLib in the FunctionLibrary folder.
// If you do not have this file you can download it at the link below.
// http://share.esignal.com/groupcontents.jsp?folder=Formulas-Libraries&groupid=10
var fpArray = new Array();
function preMain() {
setPriceStudy(true);
setStudyTitle("T3 MA");
setCursorLabelName("T3",0);
setDefaultBarFgColor(Color.blue,0);
setPlotType(PLOTTYPE_LINE,0);
setDefaultBarThickness(1,0);
askForInput();

var x=0;
fpArray[x] = new FunctionParameter("Length", FunctionParameter.NUMBER);
with(fpArray[x++]){
setLowerLimit(1);
setDefault(6);
}
fpArray[x] = new FunctionParameter("Factor", FunctionParameter.NUMBER);
with(fpArray[x++]){
setUpperLimit(1);
setLowerLimit(0);
setDefault(0.7);
}
fpArray[x] = new FunctionParameter("Source", FunctionParameter.STRING);
with(fpArray[x++]){
addOption("open");
addOption("high");
addOption("low");
addOption("close");
addOption("hl2");
addOption("hlc3");
addOption("ohlc4");
setDefault("close");
}
fpArray[x] = new FunctionParameter("Symbol", FunctionParameter.STRING);
with(fpArray[x++]){
setDefault();
}
fpArray[x] = new FunctionParameter("Interval", FunctionParameter.STRING);
with(fpArray[x++]){
setDefault();
}
fpArray[x] = new FunctionParameter("Offset", FunctionParameter.NUMBER);
with(fpArray[x++]){
setDefault(0);
}
fpArray[x] = new FunctionParameter("Params", FunctionParameter.BOOLEAN);
with(fpArray[x++]){
setName("Show Parameters");
setDefault(false);
}
}
var amLib = addLibrary("amStudies.efsLib");
var bInit = false;
var xT3 = null;
function main(Length,Factor,Source,Symbol,Interval,Offset,P arams) {
if(bInit == false){
with( amLib ) {
if(Symbol == null) Symbol = getSymbol();
if(Interval == null) Interval = getInterval();
var vSymbol = Symbol+","+Interval;
xT3 = offsetSeries(amT3(Length,Factor,eval(Source)(sym(v Symbol))),Offset);
setShowTitleParameters(eval(Params));
bInit = true;
}
}
return getSeries(xT3);
}

Gumphrie
07-10-2007, 02:24 AM
Dwalls,

What sort of moving average do these indicators need? The original AmiBroker code you posted specifies "Mov", while the link on AmniBroker specifies "AMA" (is that the same as KAMA?).

Also on the T3 the code you posted uses "0.7" whereas the link specifies "5". So we need to make that value a parameter, but what is it?

Answer these questions and perhaps a screenshot and it should be pretty simple to knock up.

whitmark
07-10-2007, 11:18 AM
Fwiw, most traders that I know that use to work with the T3 or some derivation, including myself, have since switched to using the Hull Moving Average or HMA which is already available as a standard indicator. At the time that I switched (using another platform) I recall convincing myself that the HMA was smoother yet exhibited less lag than the T3 indicator for my applications. Your mileage may vary.

Regards,

Whitmark

dwalls
07-10-2007, 01:45 PM
Gumphrie,
Here is another similar formula I found:

Description:

Trading system based on cubing of function (1+a)-ax^2 where a is the amplification ( 0 < a < 1.0, I use 0.7) and en is the exponentially smoothed average of the closing price.

Formula:

/* T3 trading system */
a = 0.7;
n = 2;

alpha = 2/(n + 1);
e1 = ema(close, n);
e2 = ema (e1, n);
e3 = ema (e2, n);
e4 = ema (e3, n);
e5 = ema (e4, n);
e6 = ema (e5, n);

T3 = -a^3 * e6 + (3 * a^2 +3 * a^3) * e5 + (-6 * a^2 - 3 * a - 3 * a^3) * e4 + (1 + 3 * a + a^3 + 3 * a^2) * e3;

graph0 = close;
graph1 = T3;

SELL = cross ( Close, T3 );
BUY = cross (T3, Close );
SHORT = cross ( Close, T3);
COVER = cross (T3, Close );

Maybe this will help you.Thanks for your help.

Gumphrie
07-11-2007, 06:36 PM
Dwalls,

Is this correct? (find attached).
Don't forget to compile it in the Ninjascript Indicator ediror after placing it in "My Documents\NinjaTrader 6\bin\Custom\Indicator"

- attachment removed -

NinjaTrader_Ray
07-11-2007, 06:48 PM
Thanks for contributing Gumphrie!

Did you know that you can export a script via File > Utilities > Export NinjaScript ? This creates a zip file that people can then import which automatically compiles.

dwalls
07-11-2007, 08:24 PM
Gumphrie,

Thanks for your help.
It is suppose to be an overlay of price just like any other moving average.
I attached a screen shot of the indicator on eSignal. The yellow line is the 3 period and the white line is the 5 period. I cant seem to get a picture of the eSignal Study Properties so I will type them out:

Parameter Value Default
Lenght1 5 5
Lenght2 3 3
Factor 0.7 0.7
Source close close
Symbol n/a n/a
Interval n/a n/a
Offset 0 0
Show Parameters false false
Linecolor1 white white
Linecolor2 yellow yellow

I hope this helps.
Thanks again.

NinjaTrader_Ray
07-11-2007, 08:51 PM
You can add the line within the Initialize() method:

Overlay = true;

and then recompile or;

When adding the indicator to the chart, just change the panel property to a value of 1.

dwalls
07-11-2007, 09:19 PM
Thanks NinjaTrader Ray,

When I did as you suggested, the chart flatlines. I can see the red indicator line well below price, its way down there and flatlined.
I also added the also:

PriceTypeSupported = true;

and that didnt help either.

Thanks for your help.

Gumphrie
07-12-2007, 02:03 AM
Thought that would happen (which is why a screenshot helps).
Try the attached version. The zip file is a NinjaScript export file.

Gumphrie
07-12-2007, 02:58 AM
I have also switched from Tradestation to Ninjatrader and I'm glad I did.
It also took me a while to get familiar with ninjascript (and I'm still working on it, C# is new for me too) but it is WAY more powerful than Tradestation EL.

I still feel that the very simple things are more quickly implemented in EL than in NTscript, however the more complicated stuff is easier in NTscript. One of the reasons is that you can structure your code much better in NTscript than in EL.

Exactly, EL and other indicator languages are so poorly typed that the majority of translation errors stem from that problem. Plus the power of C# makes it a lot easier to integrate more complicated logic and applications.

For the people who need more indicators, maybe a seperate section in this supportforum can be setup where NT users can share their indicators. Personally I prefer that the developers at Ninjatrader company focus on debugging and adding new features to NT instead of translating hundreds of indicators.

Agreed. I think Ray, Dierk and Christian have done such an excellent job posting replies at all hours and in helping this forum grow that its time the community members started to communicate better with each other on such topics.

NinjaTrader_Josh
07-12-2007, 03:44 AM
Any other requests? Good work going on here. Thanks Gumphrie. Lets keep the ball rolling.

I'm also all up for a section where we can just post our indicators. I wouldn't mind sharing a few of mine with everyone.

NinjaTrader_Ray
07-12-2007, 06:56 AM
Thanks all, this is very encouraging...

Offering a file sharing facility is on my list! Please be patient as the list is long :)

dwalls
07-12-2007, 02:54 PM
Gumphrie,

Looks like you nailed it.
It seems to be working correctly.

Thanks so much for all your help with this indicator.

Keep up the good work in this forum.

Mike Winfrey
08-03-2007, 06:28 PM
Gumphrie,
Are you serious about converting indicators from TS to NT? I see you did one so am hoping you are will ing to do another. It is an adaptive CCI. Any help you can give is greatly appreciated. I am trying to do this myself but have just started working with NT. The learning curve is quite large.

thanks,
Mike Winfrey

Gumphrie
08-03-2007, 07:05 PM
Mike,

Sure, can you post a screenshot?

Also, if you're interested, there are other converted indicators in the fileshare section.

Mike Winfrey
08-04-2007, 05:11 AM
Thank you for doing this Gumphrie. I remembered about the screen shot as I was going to bed last night.

I'll check out the fileshare area as well.

Thanks,
Mike

Gumphrie
08-04-2007, 05:17 AM
I'm a bit confused by what the "Period" variable is doing in that EL code. If its really initialsed to 0 and not an input variable it will stay 0 as ".2*Period + .8*Period[1]" is still 0.


Any ideas?

Gumphrie
08-04-2007, 05:20 AM
Mike,

The code looks like its only plotting one line and not doing all that other stuff in the screenshot, is that correct?

Mike Winfrey
08-04-2007, 05:23 AM
I believe it's plotting the smoothed line that is related to the histogram. The single smoothed line is another ema that is another indicator.

You guys must never sleep.

Thanks,
Mike

Mike Winfrey
08-04-2007, 05:27 AM
Just saw your second post...not sure what the period being initialized to 0 is either. I saw and wondered how that worked as well. but it's the code provided by the author without comments. So, I'm not sure either.

Mike Winfrey
08-04-2007, 02:36 PM
Gumphrie,
I found something that may be very helpful. I found an indicator included with ninjatrader that is called MAMA. It was written by the same author as this one for the adaptive cci. The good news is that 90% of the code is common between the 2. Therefore most of the work is already done. Just need to substitute the cci code for the MA code and that should be all that's needed. I am working on that now.

Mike

Gumphrie
08-04-2007, 04:13 PM
Excellent spot Mike.

Here's what I have if you want to compare.

To import:

- Download the file contained in this thread to your desktop
- From the Control Center window select the menu File > Utilities > Import NinjaScript
- Select the downloaded file

Mike Winfrey
08-04-2007, 04:51 PM
this is awesome...you are so much better at this than I am. That's not really saying much because I just started looking c# yesterday. I like the adaptive cci. you can read about it at http://tuckerreport.com/indicators/. Doug Tucker isn't the author of it obviously but he uses it and has done a lot of research into applying it to trading. He gives a better explanation of if than John Ehlers does.

Now I have another cci that I am working on and am almost done with it. It uses a different formula to calculate the typical price. I have been using it on my trademaven charts and like it a lot. I use it to confirm patterns that I see on the main cci. like it a lot so far. However, I really want to use it with this adaptive CCI. My suspicion is that I will get better entry signals and less fakeout signals.

I really thank you for doing this. I may be back in touch with you if I don't figure this other one out. I think I'm almost done with it.

By the way, after I'm comfortable that we have the adaptive cci right, should we post it in the downloads area?

Thanks again.
Mike Winfrey

Gumphrie
08-04-2007, 05:40 PM
Thanks for the link, the articles are very educational and easy to read.

Yes, if you can compare the same indicator and instrument/timeframe on Tademaven and if you're happy with it post it in the file share section.

As I mentioned way back on this thread I'm a programmer trying to learn becoming a trader, so new trading insights are always appreciated, thankyou.

Heart
08-05-2007, 05:55 AM
...
Now I have another cci that I am working on and am almost done with it. It uses a different formula to calculate the typical price. I have been using it on my trademaven charts and like it a lot. I use it to confirm patterns that I see on the main cci. like it a lot so far. However, I really want to use it with this adaptive CCI. My suspicion is that I will get better entry signals and less fakeout signals.....
Could you explain a little bit more about this (and some screenshots eventually?)?

Thanks

Mike Winfrey
08-05-2007, 07:00 AM
Yes Heart I can...

The normal cci uses (high + low + close) /3 to calculate the typical price. I am using (max(high, n) + min(low, n) + close) /3. This formula is available in Trademaven charts but has to be coded in ninja. I've been using this other formula for a while now in a way that gives me confirmation of entries. So, I use the main cci to identify possible entries and the other cci is overlayed to confirm the entry. I actually use 4 other ccis overlayed.

Now to explain this formula a bit. As you know, you set up the cci to plot a line based on a period. Most seem to use 14 so that is what I'll use here. 'n' represents the number of bars that this formula uses to get the max high and min low. so, in other words, for this example we're using the cci14 plotted the way we know and 'love'. Then we have another cci14 overlayed. However, this cci14 uses the alternate formula with n=7 which means this cci14 is plotted using the max high and min low from the previous 7 bars. You will see in my screen shot that I have 4 alternate ccis displayed. n is equal to 3, 6, 9, and 12 to get the plot for those 4. You can do the same thing by using a different period for the cci. I suggest you do as I did when I first thought of this and just look at the chart for patterns that are confirmed by the alternate ccis.

Hope this makes sense.
Mike

Heart
08-07-2007, 01:26 AM
So you take a woodie pattern (ZLR, Ghost, ....) only if all lines shows this pattern too?

Mike Winfrey
08-07-2007, 05:23 AM
no Heart I don't...woodies patterns are ok to take I guess but I don't require the other ccis to have the pattern. the trigger bar for all the ccis should be saying the same thing so to speak. sometimes, one of them may be flat or slightly pointing up when going short but the others really should be pointing down. take a look at momentum reversals. those have a tendency to be pretty good too. it just takes some effort to find what the supporting cast as I call them is saying. keep looking for things and you'll see what i mean. another place to look is at the swing highs and swing lows to start your study and then move out from there. the next thing you might look at are zlrs. those are a low percentage trade the way woodie defines them. however, look at them with the supporting cast. you will probably find that the ones that most of the unsuccessful ones are the ones where the supportting cast are going the wrong direction or they all say something different.

hope this helps.
Mike

samiam30
09-17-2007, 04:57 AM
Any takers for porting these indicatorst to NT?


(http://www.forexfactory.com/showthread.php?t=45076)

mrlucky1x
09-17-2007, 10:01 PM
Ok, here is my attempt. Perhaps someone can verify it against another platform.

I'm having trouble making the REI work in a strategy. I'm trying to get it to print a dot on the chart when REI is increasing but I get a compile error "The name 'REI' does not exist in the current context".

I've done a similiar strategy to this with the Goslin Trigger and it worked fine but I don't know why I'm getting this error with REI.

Any suggestions?

Thnx

Jim-Boulder
09-18-2007, 10:31 AM
I haven't read the code-but this error message is usally the result of a difference in capitalization (REI <> Rei <> rEI, etc.) or REI is a method and needs to be referenced as REI()...

mrlucky1x
09-19-2007, 12:27 PM
Ok, here is my attempt. Perhaps someone can verify it against another platform.

How would one go about programing this indicator to change colors when it is increasing or decreasing. I know about the rising and falling functions but just don't know where to put them. I put a zero line in but that was a simple cut and paste. I like to see indicators that color change when they start off in a new direction and have changed the ema and sma and hma moving averages to include color but I'd like to figure out how to do it to more indicators such as the Goslin that you translated.

thnx
Mark

NinjaTrader_Ray
09-19-2007, 12:30 PM
See the following educational reference sample.

http://www.ninjatrader-support.com/vb/showthread.php?t=3227

Elmi
05-29-2008, 06:36 AM
Someone asked me 200$ for a keltner Chanel hmm?

triphop
05-30-2008, 12:06 PM
Gumphrie, I confess I am absolutely, utterly hopeless at programming, but I do know a thing or two about trading.

I have thought of an indicator that would help me and others massively, but I don't believe it exists at present... and it's a straightforward combination of existing Ninjatrader indicators! If you could knock this together, I'd be eternally grateful. I call it the trend drawdown indicator

****************************
It should be a simple bar chart (plot) at the footer of a chart, together with the zig zag indicator overlaid on the prices. To work out the plot:

when zig zag> zig zag 1 bar ago & zig zag 1 bar ago < zig zag 2 bars ago
swinghigh=current high, otherwise swinghigh is as per Ninjatrader indicator

when zig zag< zig zag 1 bar ago & zig zag 1 bar ago > zig zag 2 bars ago
swinglow=current low, otherwise swinglow is as per Ninjatrader indicator

when zig zag> zig zag 1 bar ago
if swinglow<swinglow 1 bar ago, plot= swinghigh-swinglow.
if not plot=this bar's high-low

when zig zag< zig zag 1 bar ago)
if swinghigh>swinghigh 1 bar ago, plot= swinghigh-swinglow.
if not plot=this bar's high-low

the user should be able to enter the same variables of the zig zag and the swing indicator when applying it to a chart

*************************
Why is this useful? Well, if you're a trend trader, you want to let your trades run as long as possible, and trailing stops are a great way of doing this. But you want to keep a stop wide enough to give a trade room to breathe, but close enough to stop you out if you're wrong.

THis indicator would give you a great indication of the biggest drawdowns an optimal trade in the direction of trend would incur - and therefore how big your stop should be.

It's far far better than a simple ATR-based stop, because it takes into account the direction of the trend and it shows the full range of maximum drawdowns, not the average. It would also show you in certain market conditions where trailing stops are massively going to hamper your profits.

Really hope you can help out!

mason
05-30-2008, 04:42 PM
Can you give couple of charts to explain this in visual, which and which is not your point ?

triphop
06-01-2008, 06:18 AM
Sure, have a look at this. It's a simple chart with zig zag and swing applied.

Now, there are several trends. Each one is a blue line - I've marked off an example.

IN the example marked, it's an uptrend, so I want to know what's the maximum value in pips of a trailing stop that you keep you in the trade from the start of the line to the end.

I think the swing indicator would be the best way to work this out - effectively, whenever a new high is made, what's the lowest point that follows it? THe different between the two is the counterswing if you like. Then repeat for every new high you receive.

When in a downtrend, just work out the opposite.

I think the logic above would produce what I want, but I'm no programmer so don't hold me to it!





http://img160.imageshack.us/img160/5673/exampleey6.jpg
By triphop (http://profile.imageshack.us/user/triphop) at 2008-06-01

Elmi
06-05-2008, 01:55 PM
I am a programmer first and trader second. If someone wants to give me some indicators to translate into Ninjascript I'll give it a go for free if I can use them too.

Could you please help me making this compatible with NT?
.........
Inputs: BandDays(28), DevConstant(3.5);


Variables: BandTop(0), BandMid(0), BandBot(0), expSmoothPrice(0);
Variables: expSmoothRange(0);


IF (CURRENTBAR = 1) THEN
BEGIN
expSmoothPrice = CLOSE ;
expSmoothRange = HIGH-LOW ;
END ELSE
BEGIN
expSmoothPrice = (expSmoothPrice*(BandDays-1)+CLOSE)/BandDays ;
expSmoothRange = (expSmoothRange*(BandDays-1)+(HIGH-LOW))/BandDays ;
END ;

BandTop = expSmoothPrice+(expSmoothRange*DevConstant) ;
BandMid = expSmoothPrice ;
BandBot = expSmoothPrice-(expSmoothRange*DevConstant) ;
PLOT1 (BandTop, "TBand Top") ;
PLOT2 (BandMid, "TBand Mid") ;
PLOT3 (BandBot, "TBand Bot") ;
........................................


Regards

fxkred
09-02-2008, 11:40 AM
I am a programmer first and trader second. If someone wants to give me some indicators to translate into Ninjascript I'll give it a go for free if I can use them too.

Hi Gumprie,

I like this indicator, and look for it. Can you develop that can show weekly and monthly fibo range as well?

Gumphrie
09-02-2008, 11:57 AM
I'm too busy these days to do everyones indicators for them, so please stop quoting something I said over a year ago. If anyone wants to do a collaborative project, sure I'll take a look at it, but I have enough indicators now, thanks...

Elmi
09-03-2008, 02:36 PM
I'm too busy these days to do everyones indicators for them, so please stop quoting something I said over a year ago. If anyone wants to do a collaborative project, sure I'll take a look at it, but I have enough indicators now, thanks...

Thats why NT will follow TS ALL THE TIME


Gumphrie i GRANDED ALLOT OF CODE YOU REMEMBER.
And also never mentioned My name ON (YOUR) INDICATORS hmm.
I just asked 5 lines of code.
If you donot want to post here please send that by email PLEASE !!!

Gumphrie
09-03-2008, 03:20 PM
Gumphrie i GRANDED ALLOT OF CODE YOU REMEMBER.
And also never mentioned My name ON (YOUR) INDICATORS hmm.


Sure you requested a few translations (and I did mention you were the requester), they were all free TS indicators, they weren't written by you.

I contribute when I can, I'm busy right now as I have a 3 week old daughter who's screaming her head off, I have no sleep! Just because a plumber can plumb and you can't you don't grab them and demand they fix your drains, why expect the same from me. I am no way connected to NT staff or any other commercial party when I do this free stuff so am under no obligation.

In the time you got angry at me you could have learnt how to code those 5 lines!

Elmi
09-04-2008, 07:14 AM
good luck to you and your daughter

dwalls
09-04-2008, 07:46 AM
Gumphrie,
Your contribution to this forum is invaluable.
In the early days of this forum you did a lot of work and it is very much appreciated.
All the best to you and your family.

dwalls

Elliott Wave
09-04-2008, 01:14 PM
Congratulations on the birth of your daughter gumphrie!:) And thanks again for all your contributions to the forum.

twtrader
09-10-2008, 01:15 AM
Congrats on the baby !


I contribute when I can, I'm busy right now as I have a 3 week old daughter who's screaming her head off, I have no sleep!

sbgtrading
06-07-2009, 01:31 PM
Hello Elmi,

The conversion of this indicator is attached below.

Enjoy!

Ben


Could you please help me making this compatible with NT?
.........
Inputs: BandDays(28), DevConstant(3.5);


Variables: BandTop(0), BandMid(0), BandBot(0), expSmoothPrice(0);
Variables: expSmoothRange(0);


IF (CURRENTBAR = 1) THEN
BEGIN
expSmoothPrice = CLOSE ;
expSmoothRange = HIGH-LOW ;
END ELSE
BEGIN
expSmoothPrice = (expSmoothPrice*(BandDays-1)+CLOSE)/BandDays ;
expSmoothRange = (expSmoothRange*(BandDays-1)+(HIGH-LOW))/BandDays ;
END ;

BandTop = expSmoothPrice+(expSmoothRange*DevConstant) ;
BandMid = expSmoothPrice ;
BandBot = expSmoothPrice-(expSmoothRange*DevConstant) ;
PLOT1 (BandTop, "TBand Top") ;
PLOT2 (BandMid, "TBand Mid") ;
PLOT3 (BandBot, "TBand Bot") ;
........................................


Regards

Elmi
06-07-2009, 04:56 PM
sbgtrading thanks but what do I do wrong?
here is what I get

laredo
07-14-2009, 04:17 PM
Ben,

where is the calculate value download please?

sbgtrading
07-14-2009, 04:49 PM
where is the calculate value download please?


Hi Laredo...

Are you familiar with the search utility here in the forums? You can search for "CalculateValueArea" and you'll be presented with a number of threads that each contain different indicators for download.

Let me know if this is what you're looking for...thanks!

laredo
07-14-2009, 04:55 PM
Yes I have been doing that ,perhaps the logo format of the actual download isnt something I recognize.

laredo
07-14-2009, 04:58 PM
Ben,

Ok found the webpage featuresl

I can begin here.

Tks

sbgtrading
07-14-2009, 05:00 PM
Yes I have been doing that ,perhaps the logo format of the actual download isnt something I recognize.


Here's a link to one of the indicators CalculateValueArea-Histo (http://www.ninjatrader-support2.com/vb/showpost.php?p=71003&postcount=39)


Ben

iluvit
04-17-2011, 07:06 PM
I am new to NT and could not be more impressed with the functionality. Sure there are tons of easylanguage indicators available since TS has been available for so long but in just a few days I have collected about 200 indicators as free indicators for NT. Some are quite incredible at that. I started using TS in 1992 and the charting is excellent. On the other end of the spectrum the customer service with TS is possibly the worst in the business. I would never go back to tradestation. I even got conned into buying some custom TS indicators for about $3000 that were absolutely worthless and never made me a dime. I also bought the trading alchemy stuff for TS and they were nice indicators but were mostly minor variations of what is available fro NT in the public domain. With NT i am finding that I can build and test an Idea as a strategy in just a few minutes without wasting hours or days programing before I have any idea if it will work or not. With a little thought into setting the variables and inputs and conditions some very complex indicators and strategies can be created with NT. It does so much that the learning curve may take a while but appears to be well worth it. I thought the learning curve with easy language was as steep if not steeper with easy language.

When I purchased everything TS had to offer in 1993 for thousands of dollars I though I was set. Then when they went from the older version to the centrally controlled version licensing the abandoned all the folks that had purchased the software and refused to service these clients. Now they want about $250 bucks a month to continue using the software and (( bucks a month if you trade with their expensive brokerage. You can purchase or program a lot of indicators programmed at those prices.

When I have a question on NT I usually get a response within 15 minutes and if necessary they do a virtual screen session to address difficult issues.

Sometimes we get so caught up in the micromanagement of the indicators that we forget the basics of price action, volume, volatility, trend, SR and money management that we either over trade or get trade paralysis. I love all the bells and whistles and fancy indicators but when I boil my overall trading down to the bottom line if you show me a major trend and buy sell volume I will make profit with good money management. I follow the institutional trades because they create volume and direction of the market all the time.