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 judysamnt7, 03-13-2023, 09:11 AM
              4 responses
              57 views
              0 likes
              Last Post DynamicTest  
              Started by ScottWalsh, Today, 06:52 PM
              4 responses
              36 views
              0 likes
              Last Post ScottWalsh  
              Started by olisav57, Today, 07:39 PM
              0 responses
              7 views
              0 likes
              Last Post olisav57  
              Started by trilliantrader, Today, 03:01 PM
              2 responses
              20 views
              0 likes
              Last Post helpwanted  
              Started by cre8able, Today, 07:24 PM
              0 responses
              9 views
              0 likes
              Last Post cre8able  
              Working...
              X