• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator plots 3 decimals only...

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

    Indicator plots 3 decimals only...

    The attached MomDivergence indicator has 3 plots, with one as a High/Low plot that is supposed to show the bar's High or Low when the indicator plots divergence. In the code, I am assigning the value to the plot by saying (these two lines of code are nestled into the buy and sell functions:
    Values[2].Set(int barsback, Low[int barsback]);
    or
    Values[1].Set(int barsback, High[int barsback]);

    But the problem is, in the Data Box it only shows 3 decimal places. This works fine for the JPY pairs, but problem for the other pairs.

    I tried to find in the indicator's code where it was declaring or limiting or rounding down to three decimals. But I could not find anything.

    I appreciate help on what I need to do.

    -Stearno

    More Details about my settings:
    • I am using NT7 on FXCM Demo Account (NT7 Type is SimulationOnly). It is version 7.0.1000.25
    • In Instrument Manager, @GBPUSD is set to a Tick Size of 0.0001. @EURJPY is set to 0.01.
    • I checked "Tools: Data:Quote currencies (FX) in:" and it is set to Pips. I tried changing it, but same result.
    Attached Files

    #2
    Stearno,

    Thank you for your post.

    You will want to override the FormatPriceMarker() to the number of decimals you are looking for
    http://www.ninjatrader.com/support/h...ricemarker.htm
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Thanks. That worked.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by bosajin, Yesterday, 06:27 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Jim  
      Started by stefanrvc, Today, 04:59 AM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_Marco  
      Started by 7robert, Yesterday, 08:30 PM
      2 responses
      16 views
      0 likes
      Last Post NinjaTrader_Marco  
      Started by pjsmith, Today, 01:13 AM
      1 response
      17 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Started by yukashg, Yesterday, 09:56 PM
      1 response
      16 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Working...
      X