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!
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
NinjaTrader
NetChange weekly
Collapse
X
-
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.JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by fx.practic, 10-15-2013, 12:53 AM
|
5 responses
5,403 views
0 likes
|
Last Post
by Bidder
Today, 12:22 AM
|
||
Started by Shai Samuel, 07-02-2022, 02:46 PM
|
4 responses
94 views
0 likes
|
Last Post
by Bidder
Today, 12:11 AM
|
||
Started by DJ888, Yesterday, 10:57 PM
|
0 responses
6 views
0 likes
|
Last Post
by DJ888
Yesterday, 10:57 PM
|
||
Started by MacDad, 02-25-2024, 11:48 PM
|
7 responses
158 views
0 likes
|
Last Post Yesterday, 10:23 PM | ||
Started by Belfortbucks, Yesterday, 09:29 PM
|
0 responses
8 views
0 likes
|
Last Post
by Belfortbucks
Yesterday, 09:29 PM
|
Comment