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

Add a Zero Line to TSI

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

    Add a Zero Line to TSI

    Hello,
    I would like to add a Zero Line to the TSI indicator.
    I tried this but it did not plot. Does anyone know why ?
    {
    Add(new Plot(Color.Green, "TSI"));
    Add(new Line(Color.DarkViolet, 0, "Zero line")); //I added this line

    fastAbsEma = new DataSeries(this);
    fastEma =
    new DataSeries(this);
    slowAbsEma =
    new DataSeries(this);
    slowEma =
    new DataSeries(this);
    }
    How can I add a Zero Line to TSI that will plot?

    Thanks

    #2
    Hi dwalls,

    Try:

    Add(new Line(System.Drawing.Color.DarkViolet, 0, "Zero line"));

    Comment


      #3
      Thx Paul,
      I tried it but that one didnt work.
      But thanks for trying.

      dwalls

      Comment


        #4
        Add(new Line(new Pen(Color.DarkViolet, 1), 0, "Zero line"));
        eDanny
        NinjaTrader Ecosystem Vendor - Integrity Traders

        Comment


          #5
          That is curious. The

          Add(new Line(System.Drawing.Color.DarkViolet, 0, "Zero line"));

          worked on my Vista and XP NT Charts.

          Go figure!

          Comment


            #6
            I got it to work.

            Thanks guys.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by inanazsocial, Today, 01:15 AM
            0 responses
            2 views
            0 likes
            Last Post inanazsocial  
            Started by trilliantrader, 04-18-2024, 08:16 AM
            5 responses
            22 views
            0 likes
            Last Post trilliantrader  
            Started by Davidtowleii, Today, 12:15 AM
            0 responses
            3 views
            0 likes
            Last Post Davidtowleii  
            Started by guillembm, Yesterday, 11:25 AM
            2 responses
            9 views
            0 likes
            Last Post guillembm  
            Started by junkone, 04-21-2024, 07:17 AM
            9 responses
            70 views
            0 likes
            Last Post jeronymite  
            Working...
            X