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 SuneSorgenfrei, Today, 02:50 AM
              0 responses
              0 views
              0 likes
              Last Post SuneSorgenfrei  
              Started by MonteK, Yesterday, 09:31 PM
              0 responses
              28 views
              0 likes
              Last Post MonteK
              by MonteK
               
              Started by nkhoi, Yesterday, 09:27 PM
              1 response
              16 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by SuperDude123, Yesterday, 03:52 PM
              4 responses
              28 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by ErikY, Yesterday, 01:16 PM
              1 response
              26 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Working...
              X