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 rocketman7, Today, 09:41 AM
              4 responses
              15 views
              0 likes
              Last Post rocketman7  
              Started by selu72, Today, 02:01 PM
              1 response
              9 views
              0 likes
              Last Post NinjaTrader_Zachary  
              Started by WHICKED, Today, 02:02 PM
              2 responses
              13 views
              0 likes
              Last Post WHICKED
              by WHICKED
               
              Started by f.saeidi, Today, 12:14 PM
              8 responses
              21 views
              0 likes
              Last Post f.saeidi  
              Started by Mikey_, 03-23-2024, 05:59 PM
              3 responses
              56 views
              0 likes
              Last Post Sam2515
              by Sam2515
               
              Working...
              X