It appears to be printing values of where the ema is located instead of the slope of the ema. I attached screenshots.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Not printing correct informtation
Collapse
X
-
Not printing correct informtation
I am trying to debug a strategy with prints and the prints don't seem to be printing the data I was expecting.
It appears to be printing values of where the ema is located instead of the slope of the ema. I attached screenshots.Tags: None
-
Hello cowlickfarms,
Thank you for your post.
You can always verify the values of your prints against the values of the EMA on your chart by adding the indicator to your chart. I also suggest adding the time of the bar to your prints so you know which bar the slope value is tied to. Here is an example where I added the indicator to the chart in the condition, and I also added the time of the bar to the print statements. From this information, I can see that the print is not the same as the value of the ema:
VIdeo - https://www.screencast.com/t/jQRP4mZ6
With this change, the indicator will plot on the chart. The indicator is a 14-period EMA of another 14-period EMA of the Volume Up Down indicator's down volume values. The slope is calculated per the formula listed on this page, so you could verify the values of the prints by spot-checking the chart and doing the math:
Please let us know if we may be of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
50 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
126 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
69 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment