Announcement

Collapse
No announcement yet.

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:	138
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.

    Comment


      #3
      Thank you, Emily! You are lovely!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      41 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      37 views
      0 likes
      Last Post CarlTrading  
      Working...
      X