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 WHICKED, Today, 12:45 PM
              2 responses
              19 views
              0 likes
              Last Post WHICKED
              by WHICKED
               
              Started by GussJ, 03-04-2020, 03:11 PM
              15 responses
              3,276 views
              0 likes
              Last Post xiinteractive  
              Started by Tim-c, Today, 02:10 PM
              1 response
              8 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by Taddypole, Today, 02:47 PM
              0 responses
              5 views
              0 likes
              Last Post Taddypole  
              Started by chbruno, 04-24-2024, 04:10 PM
              4 responses
              51 views
              0 likes
              Last Post chbruno
              by chbruno
               
              Working...
              X