Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Not printing correct informtation

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

    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.
    Attached Files

    #2
    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.

    Comment

    Latest Posts

    Collapse

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