Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy calling Indicator

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

    Strategy calling Indicator

    I have a Strategy that places orders but want to filter out some orders being placed by a custom indicator, that is just added to the chart right now .
    Any suggests how I can do this? The custom indicator is more then just a few lines of code..

    #2
    gg80108,

    What do you mean by filter? If you want to limit your trades based on the custom indicator you then need to call the indicator and make the additional conditions.

    You can call any indicator from a strategy. Please see the SampleMACrossOver for an example of how they called the SMA indicator.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Yes saw that ,, I want to incorporate "Scalper" code to limit the trades to only when the ScalpBar=true..

      Comment


        #4
        gg80108,

        Unfortunately I do not know how the Scalper code is programmed, but what you want to do is access the value of the indicator to get some indication that ScalpBar = true. Then you can add that to your conditions for your strategy. Remember this would only work if the code of Scalper exposes ScalpBar as a value you can access. Otherwise you would not be able to do it.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        558 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X