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 Skifree, Yesterday, 11:38 PM
            1 response
            13 views
            0 likes
            Last Post NinjaTrader_LuisH  
            Started by Mathias79, Today, 10:38 AM
            6 responses
            18 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by eladlevi, Today, 11:02 AM
            1 response
            4 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by Skifree, Yesterday, 11:41 PM
            2 responses
            13 views
            1 like
            Last Post eDanny
            by eDanny
             
            Started by TraderCro, 04-12-2024, 11:36 AM
            8 responses
            105 views
            0 likes
            Last Post NinjaTrader_ChristopherJ  
            Working...
            X