Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Excluding an event based on past period activity

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

    Excluding an event based on past period activity

    Hopefully the topic is at least somewhat explanatory...

    Is there a method by which I could filter signals from getting triggered?

    Here is a sample scenario:
    If price bar low has gotten below a certain level at any point within a certain look back period do not generate a signal (even if the low would get back above that critical level).

    Cheers

    #2
    Hello MickeyHR,

    Yes, that would be possible to do. The best way you may be able to accomplish this would be to use the MIN method. Here is a link to our Help Guide that goes over this and demonstrates how to use this as well.
    JCNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_JC View Post
      Hello MickeyHR,

      Yes, that would be possible to do. The best way you may be able to accomplish this would be to use the MIN method. Here is a link to our Help Guide that goes over this and demonstrates how to use this as well.
      http://www.ninjatrader.com/support/h...inimum_min.htm
      Thank's.

      I should have naturally stated that my aim is to have a changing critical value. Based on a moving average.

      So unfortunately according to my understanding, if the critical value (moving average) has increased to a value which is above a MIN based minimum of say 30 bars back it would create a false indication by basing the trigger on that past MIN which actually at that time was above the critical level.

      So... Are there any other methods I could use to include the look back period?

      Comment


        #4
        Hello MickeyHR,

        You can still do this if you would like to see the lowest price of a moving average. Since MIN takes in a Data Series, you can pass it an indicator like SMA and it will still function the same.

        Example:

        int lowestSMAValue = MIN(SMA(14), 4);
        JCNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Irukandji, Yesterday, 02:53 AM
        2 responses
        17 views
        0 likes
        Last Post Irukandji  
        Started by adeelshahzad, Today, 03:54 AM
        0 responses
        3 views
        0 likes
        Last Post adeelshahzad  
        Started by CortexZenUSA, Today, 12:53 AM
        0 responses
        3 views
        0 likes
        Last Post CortexZenUSA  
        Started by CortexZenUSA, Today, 12:46 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by usazencortex, Today, 12:43 AM
        0 responses
        5 views
        0 likes
        Last Post usazencortex  
        Working...
        X