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:	110
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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    79 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
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X