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