Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can someone make this TS indicator for NinjaTrader please ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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, 02:57 AM.

    #2
    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.

    Comment


      #3
      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

      Comment


        #4
        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.

        Comment


          #5
          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

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          596 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          343 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          556 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          554 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X