![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
|
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.
|
|
|
|
|
|
#2 |
|
Certified NinjaScript Consultant
|
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. |
|
|
|
|
|
#3 |
|
Junior Member
|
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 |
|
|
|
|
|
#4 | |
|
Certified NinjaScript Consultant
|
Quote:
![]() What regarding discrepancies you are probably right. I don't know the actual code of TTM Trend. |
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jun 2010
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |