Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Tenth Pip and Digit Precision

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

  • NinjaTrader_Jesse
    replied
    Hello pel11,

    Thank you for the post.

    In general, the calculations you do and values you store as doubles in C# will allow for that precision. The price data you see will likely not be in that precision and will instead be formatted based on the instruments TickSize property.

    In NinjaScript if you do a calculation with that price data that results in a large remainder it is certainly possible to see the remainder of that value. You would be able to see the remainder up to the extent that the type (double) allows for as you created a new value.

    The ES has a TickSize of 0.25 defined in its instrument settings, so the incoming price values reported would be in increments of 0.25. All plotted values would also be formatted for the TickSize unless you override the price marker for the value of the indicator. This allows for other precision values to be plotted, or to avoid locking the visual to the tick size.


    I look forward to being of further assistance.

    Leave a comment:


  • pel11
    started a topic Tenth Pip and Digit Precision

    Tenth Pip and Digit Precision

    Am porting over a tick-based strategy in Amibroker that a colleague developed, for which a tick difference looks like:


    Code:
    xtickslow=Param("xticks Low", 0.0.01,0.00001,1,.01);

    Question is, is the digit precision of 1E-05 accessible in a 150-tick bar strategy in NT8?


    The target asset is the ES using e.g. 150-tick bars.

Latest Posts

Collapse

Topics Statistics Last Post
Started by WHICKED, Today, 12:45 PM
0 responses
1 view
0 likes
Last Post WHICKED
by WHICKED
 
Started by FrazMann, Today, 11:21 AM
2 responses
6 views
0 likes
Last Post NinjaTrader_ChristopherJ  
Started by rjbtrade1, 11-30-2023, 04:38 PM
2 responses
80 views
0 likes
Last Post DavidHP
by DavidHP
 
Started by Spiderbird, Today, 12:15 PM
1 response
7 views
0 likes
Last Post NinjaTrader_ChristopherJ  
Started by lorem, Yesterday, 09:18 AM
5 responses
18 views
0 likes
Last Post NinjaTrader_ChelseaB  
Working...
X