Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator behavior different in MA, vs Chart

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

    Indicator behavior different in MA, vs Chart

    I've got the MA working with my indicator sorting my ticker list. I wanted to limit the number of days back from current day for my signal, so as it sorts through my list, it rejects tickers that dont have a signal within 20 days of the EOD. I thought I could do this by;

    if (CurrentBar < 235)
    {
    Middle.Set(0);
    Lower.Set(0);
    Upper.Set(0);
    SMA50.Set(0);
    SMA100.Set(0);
    MYMAFT.Set(0);
    }
    else
    {
    Remaining code....

    which, when applied to a chart, eliminates my MYMAFT signal (and all other plots) for all time longer than 20 days ago. However, when the same indicator is applied to the MA, I still get this signal even if it's anywhere in the 255 day range. It's as if MA ignores my "if (CurrentBar < 235)" on MYMAFT, the signal I'm filtering tickers with.

    Thanks and best regards,

    Joe

    #2
    Joe,

    Thank you for your post.

    The MA is designed to show the latest tick or bar of data that the indicator is loading.

    It will not display any historical values in the MA.

    You can compare the value between the Chart to the ones in the MA to see the latest values.


    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    60 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    39 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    19 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    21 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    51 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X