Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Readings from indicator are different

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

    Readings from indicator are different

    HI why is my reading in output is different then what indicator is showing on the chart?
    Am i doing it right?

    regSlopeInd = LinRegSlope(Close,14);
    Print("slope:"+regSlopeInd[0]);

    Click image for larger version

Name:	image.png
Views:	103
Size:	255.1 KB
ID:	1286929

    #2
    Hello tkaboris,

    Thank you for your post.

    Is the LinRegSlope(Close, 14) based on the same input series as the indicator on your chart? Your chart appears to be showing the indicator based on a 5-second NQ 03-24 series, yet your prints do not seem to output every 5 seconds. Are you printing the values on bar close, on each tick, or on price change? There is likely a difference between the indicator applied programmatically and the indicator applied to the chart visually that would help to explain why you might be seeing different values between the two.

    Please provide a reduced sample of your script demonstrating the data series being used and a screenshot of the indicator settings for the Lin. reg. slope shown on your chart.

    I look forward to your reply.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    56 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    132 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X