Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Convert Price to Dollars

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

    Convert Price to Dollars

    Good Morning,

    I am writing some position sizing code in one of my strategies and I am stuck on what seems to be a simple question.

    How to I convert the price of a contract into dollars?

    In case it matters, I am looking at commodities, not stocks.

    Thank you in advance for your help.

    Cheers,

    #2
    Hi SodyTexas,

    Thank you for your post and welcome to the forums!

    Price of a contract into dollars is worked out as Point value * Tick Size.

    Example is the ES contract.
    Point value = 50
    TickSize = .25

    50*.25 = $12.50 per tick.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Thanks Cal,

      Point Value was what I could not find; I appreciate the help finding it! Just in case someone else reads this, they can find the syntax here:

      http://www.ninjatrader.com/support/h...trument_po.htm

      Cheers,

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by kinfxhk, 07-14-2026, 09:39 AM
      0 responses
      123 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 10:18 AM
      0 responses
      104 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 09:50 AM
      0 responses
      82 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 07:21 AM
      0 responses
      102 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-11-2026, 02:11 AM
      0 responses
      83 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X