Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DataSeries Market Analyzer output

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

    DataSeries Market Analyzer output

    Hi,

    ive programmed up an indicator which returns a value contained in a DataSeries. When i display the value in market analyzer, it returns a double. Is there any way i can just return an int?

    Ive tried IntSeries, but somehow it doesnt show up in the indicator properties.

    ian

    #2
    Ian,

    MA columns will show plot values which are DataSeries objects which are double values.
    RayNinjaTrader Customer Service

    Comment


      #3
      Oh i think i wasnt very clear.

      What i meant is that the column values were showing up as '5.0000', for example. When all i really want it to display is just '5'. I cant seem to make that happen.

      Comment


        #4
        I believe the formatting is based on the tick size of the underlying instrument. This can't be changed. We have added some enhancement in this area of our next major version.
        RayNinjaTrader Customer Service

        Comment


          #5
          Ok thanks for your reply.

          Comment


            #6
            Any updates on this?

            Hi,

            I've been searching and haven't found any relevant posts on this. Basically, I would like to be able to display the DataSeries (double) output in the MA window as just an integer.

            I saw a post mentioning Price Overlay but I haven't been able to determine what that is.

            Your assistance is appreciated.

            -Thanks

            Comment


              #7
              Yes, this would be possible - you'd just have to cast the double as an int, and then use the int as the plot DataSeries.Set value

              double x = ADX(14)[0];
              int a;
              // cast double to int
              a = (int)x;

              Plot0.Set(a);
              This should result in the ADX value as an int, rather then the double value.
              MatthewNinjaTrader Product Management

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by jaybedreamin, Today, 05:56 PM
              0 responses
              7 views
              0 likes
              Last Post jaybedreamin  
              Started by DJ888, 04-16-2024, 06:09 PM
              6 responses
              18 views
              0 likes
              Last Post DJ888
              by DJ888
               
              Started by Jon17, Today, 04:33 PM
              0 responses
              4 views
              0 likes
              Last Post Jon17
              by Jon17
               
              Started by Javierw.ok, Today, 04:12 PM
              0 responses
              12 views
              0 likes
              Last Post Javierw.ok  
              Started by timmbbo, Today, 08:59 AM
              2 responses
              13 views
              0 likes
              Last Post bltdavid  
              Working...
              X