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 Lumbeezl, 01-11-2022, 06:50 PM
        30 responses
        802 views
        1 like
        Last Post grayfrog  
        Started by xiinteractive, 04-09-2024, 08:08 AM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by Johnny Santiago, 10-11-2019, 09:21 AM
        95 responses
        6,193 views
        0 likes
        Last Post xiinteractive  
        Started by Irukandji, Today, 09:34 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by RubenCazorla, Today, 09:07 AM
        1 response
        6 views
        0 likes
        Last Post RubenCazorla  
        Working...
        X