Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NetChange weekly

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

    NetChange weekly

    How can I go about modifying the NetChange column for the market analyzer to have a look back of 5 so it gives me a weekly net change output?

    #2
    Hello Conceptzx,

    The market analyzer net change column works based on the current market price and the market data event LastClose which does not have historical data to look back for past days. To be able to look back on previous days you would need to use an indicator that can load bar data but that would also change its calculation.

    In an indicator you could do a similar calculation but you would need to modify it in some ways. if you wanted to be able to look back at past days you would need to use the bar close prices rather than lastclose prices. You would also have to come up with the equation you wanted to use for the 5 prices that would be included, the net change column only deals with 1 lastclose price in its equation. You could potentially use a weekly bar for this purpose to simplify the equation back to 1 close price but that would include a full 7 days for the week instead of a lookback of 5 days.
    Last edited by NinjaTrader_Jesse; 10-05-2023, 09:06 AM.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    132 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    74 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    117 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    113 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    89 views
    0 likes
    Last Post CarlTrading  
    Working...
    X