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

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 Jon17, Today, 04:33 PM
      0 responses
      1 view
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      6 views
      0 likes
      Last Post Javierw.ok  
      Started by timmbbo, Today, 08:59 AM
      2 responses
      10 views
      0 likes
      Last Post bltdavid  
      Started by alifarahani, Today, 09:40 AM
      6 responses
      41 views
      0 likes
      Last Post alifarahani  
      Started by Waxavi, Today, 02:10 AM
      1 response
      21 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Working...
      X