• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    Patrick H.NinjaTrader Customer Service

    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.
        Patrick H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by aviat72, Today, 12:41 AM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_ChrisSch  
        Started by _Zero_, 01-06-2020, 01:16 PM
        2 responses
        77 views
        2 likes
        Last Post CiprianV  
        Started by RuthB, 05-29-2020, 09:41 PM
        3 responses
        33 views
        0 likes
        Last Post aviat72
        by aviat72
         
        Started by Jorge.andres.o, Yesterday, 08:22 PM
        0 responses
        7 views
        0 likes
        Last Post Jorge.andres.o  
        Started by mtamaku, Yesterday, 06:54 PM
        0 responses
        12 views
        0 likes
        Last Post mtamaku
        by mtamaku
         
        Working...
        X