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 Stanfillirenfro, Today, 07:23 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    2 responses
    21 views
    0 likes
    Last Post cmtjoancolmenero  
    Started by olisav57, Yesterday, 07:39 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by cocoescala, 10-12-2018, 11:02 PM
    7 responses
    944 views
    0 likes
    Last Post Jquiroz1975  
    Started by oviejo, Today, 12:28 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X