Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Lin reg slope

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

    Lin reg slope

    Hello,

    I have linreg slope indicator and I am trying to get rid of format 0,00000xxx and convert it into xx,xx.

    I simply tried to multiply it by default variable such as 100 000 but I am not successful.

    Is there specific line in the code which must be multiplied to get rid of these decimals?

    Thank you for your help

    Miroslav
    Attached Files

    #2
    Hello miroslav,

    Thank you for your post.

    If you need to round to decimals in the calculation you can use Math.Round: https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx
    Last edited by NinjaTrader_PatrickH; 07-15-2016, 07:44 AM.

    Comment


      #3
      Hello Patrick,

      I am already on NT8 platform.

      I would like to achive that instead value 0,00056 it will display value 56.Basically the current output will be multiplied by set variable.

      Miroslav

      Comment


        #4
        Anywhere you see "Value[0] =" is where the value of the plot is set. Multiple the value at these lines.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        669 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        378 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        580 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X