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 CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          51 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          30 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          99 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          177 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          170 views
          0 likes
          Last Post CarlTrading  
          Working...
          X