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 NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X