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 argusthome, Yesterday, 10:06 AM
        0 responses
        14 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        11 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        9 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        4 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        31 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X