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

Market Watch Calculations

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

    Market Watch Calculations

    Hi there,
    I am interested in how the values for Market Watch are calculated so that I can code it in AmiBroker for strategy development and back testing. Can you please explain how the various values are calculated? It looks like the grey number is the current price (3999.5), but I am yet to figure out how the green values are calculated. Thank you for your time!

    Nathan.

    Click image for larger version

Name:	image.png
Views:	49
Size:	31.5 KB
ID:	1242520​​
    Attached Files

    #2
    Hello Nate G,

    Thank you for your post.

    The Market Watch display is described on the following help guide page:


    You are correct that the grey number is the last traded price. The green value is the net change and is shown in both points and percent. There is also a "Net Change Display" indicator that calculates the same value and may be displayed on a chart. You may view the source code to see how it is calculated by going to Control Center > New > NinjaScript Editor. Open the Indicators folder in the explorer on the right, then double-click on "NetChangeDisplay" to view the script.

    The NetChangeDisplay value may also be accessed programmatically from other scripts as shown in the snippet here:


    Please let us know if we may be of further assistance.
    Emily C.NinjaTrader Customer Service

    Comment


      #3
      Thank you, Emily! You are lovely!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by DJ888, Today, 10:57 PM
      0 responses
      2 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      158 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Today, 09:29 PM
      0 responses
      7 views
      0 likes
      Last Post Belfortbucks  
      Started by zstheorist, Today, 07:52 PM
      0 responses
      7 views
      0 likes
      Last Post zstheorist  
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      151 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Working...
      X