NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 01-31-2009, 01:51 AM   #1
fcetrader
Junior Member
 
Join Date: Jul 2008
Location: Muret (France)
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
Send a message via MSN to fcetrader
Default Can someone make this TS indicator for NinjaTrader please ?

Hello,

I have the following indicator, but for TradeStation:

Indicator for TradeStation
------------------------------
inputs: CompBars(6), UpColor(Blue), DnColor(Red), BarWidth(1);

vars: haClose(0), haOpen(0), color(0);

if BarNumber = 1 then
begin
haOpen = open;
haClose = (O+H+L+C)/4;
end;

if BarNumber > 1 then
begin
haClose = (O+H+L+C)/4;
haOpen = (haOpen [1] + haClose [1])/2 ;

{ Conditions}

if haClose > haOpen then color = UpColor
else color = DnColor;

for value1 = 1 to CompBars
begin
if haOpen <= MaxList(haOpen[value1],haClose[value1])and
haOpen >= MinList(haOpen[value1],haClose[value1]) and
haClose <= MaxList(haOpen[value1],haClose[value1]) and
haClose >= MinList(haOpen[value1],haClose[value1]) then
color = color[value1];

end;

plotPB(High,Low,\"Indcator\",color);
SetPlotWidth(1,BarWidth);
SetPlotColor(1,color);

end;


Can someone make this TS indicator for NinjaTrader please ?
Thank you in advance for your help and support
Best regards,
Fcetrader
Last edited by fcetrader; 01-31-2009 at 01:57 AM.
fcetrader is offline  
Reply With Quote
Old 01-31-2009, 10:01 AM   #2
roonius
Certified NinjaScript Consultant
 
Join Date: Oct 2008
Location: Chicago, IL
Posts: 523
Thanks: 0
Thanked 3 times in 3 posts
Send a message via Skype™ to roonius
Default

Are you looking for TTM Trend?
The code you posted looks like it.
Look for indicator called ModHeikenAshi in Indicators section.
It's the same thing.
roonius is offline  
Reply With Quote
Old 01-31-2009, 12:36 PM   #3
fcetrader
Junior Member
 
Join Date: Jul 2008
Location: Muret (France)
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
Send a message via MSN to fcetrader
Default

Hi Roonius,

Yes, you are right. It is the TTM trend indicator.
I have already written the indicator for NT, using the ModHei indicator. Nevertheless, when I compare my indicator with the graphs published by Carter (from TradeStation), I have several discrepencies. I think that it is due to a difference between the data providers (Carter uses TradeStation, I use NT with IB or Zen-fire). I would like to know if I am right.

Best regards,
Fcetrader
fcetrader is offline  
Reply With Quote
Old 01-31-2009, 01:01 PM   #4
roonius
Certified NinjaScript Consultant
 
Join Date: Oct 2008
Location: Chicago, IL
Posts: 523
Thanks: 0
Thanked 3 times in 3 posts
Send a message via Skype™ to roonius
Default

Quote:
Originally Posted by fcetrader View Post
Hi Roonius,

Yes, you are right. It is the TTM trend indicator.
I have already written the indicator for NT, using the ModHei indicator. Nevertheless, when I compare my indicator with the graphs published by Carter (from TradeStation), I have several discrepencies. I think that it is due to a difference between the data providers (Carter uses TradeStation, I use NT with IB or Zen-fire). I would like to know if I am right.

Best regards,
Fcetrader
You don't have to write an indicator, using ModHeikenAshi, you just have to use it

What regarding discrepancies you are probably right. I don't know the actual code of TTM Trend.
roonius is offline  
Reply With Quote
Old 06-23-2010, 05:36 PM   #5
PipsPlease
Junior Member
 
Join Date: Jun 2010
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default

Roonius,

No doubt, you're a true C# Professional. When you have the opportunity, can you write this for OHLC Bar's, rather than Heiken Ashi, PLEASE?!!

BTW people, I'm pretty sure the TTM version uses (O+H+L+C)/4, which I heard is a little different from Heiken Ashi.

Thanks!

JC
PipsPlease is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tip: How to make NinjaTrader’s ROC indicator to calculate the difference in points? KamaCoder Eric Indicator Development 0 05-17-2008 09:03 AM
Can someone make this incator for NinjaTrader please? Ninja B Indicator Development 11 05-06-2008 09:41 PM
TS indicator that trades on Ninjatrader Sim DaveS Automated Trading 2 03-07-2008 12:03 PM
How to make my indicator have the same height as the price chart? henry.omd Indicator Development 1 12-15-2007 02:05 PM
Creating NinjaTrader compatible functions from TS ShowMe and indicator email alerts robinso Miscellaneous Support 1 04-11-2007 05:33 PM


All times are GMT -6. The time now is 06:54 AM.