Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATR indicator print value error

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

    ATR indicator print value error

    The chart value for the ATR is 2x the value I get from printing the value from the strategy to output. I use an array with multiple instruments and printing the value gives wildly different result from the chart value based on the same session template. It matters because I use the ATR for volatility calc for size adjustments.

    #2
    Hello elliot5,

    Thanks for your post.

    I would suggest printing out the ATR values that are being determined along with the BarsInProgress from your script to ensure that what is being pulled from the script is correct. Conversely you may want to create a single series script to see if that single series also does not match the chart ATR.

    Comment


      #3
      I found the error. Strategy BarsToLoad was set at 5 - should have been 100. Simply did not have enough bars loaded. Many thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      46 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
      66 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