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 alifarahani, Today, 09:40 AM
        6 responses
        38 views
        0 likes
        Last Post alifarahani  
        Started by Waxavi, Today, 02:10 AM
        1 response
        18 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by Kaledus, Today, 01:29 PM
        5 responses
        15 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by Waxavi, Today, 02:00 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by gentlebenthebear, Today, 01:30 AM
        3 responses
        17 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X