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:	113
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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X