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 CarlTrading, Yesterday, 11:48 AM
    0 responses
    11 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    10 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    8 views
    0 likes
    Last Post CaptainJack  
    Started by sjsj2732, 03-23-2026, 04:31 AM
    0 responses
    155 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    357 views
    0 likes
    Last Post NullPointStrategies  
    Working...
    X