Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 ETFVoyageur, 04-30-2024, 06:05 PM
          10 responses
          70 views
          0 likes
          Last Post ETFVoyageur  
          Started by Graci117, Yesterday, 11:40 PM
          4 responses
          25 views
          0 likes
          Last Post Graci117  
          Started by cmtjoancolmenero, Today, 02:31 PM
          4 responses
          9 views
          0 likes
          Last Post cmtjoancolmenero  
          Started by mintos, 04-02-2024, 08:22 PM
          2 responses
          17 views
          0 likes
          Last Post mintos
          by mintos
           
          Started by Taddypole, Today, 02:25 PM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Working...
          X