Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

indicator from a different time frame (strat wizard)

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

    indicator from a different time frame (strat wizard)

    I'm trying to add a stochastic filter to my strat . The default time frame will be 2 Min and the filter will be 400 Min .

    Is this possible in the wizard .

    Help appreciated Cheers

    #2
    Hello price777999,
    Unfortunately it is not possible to do it via the wizard. You can however do it via the NinjaScript editor by building an multi-series indicator. Please refer to our help guide to know more about it
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Originally posted by price777999 View Post
      I'm trying to add a stochastic filter to my strat . The default time frame will be 2 Min and the filter will be 400 Min .

      Is this possible in the wizard .

      Help appreciated Cheers
      ---------------------------------Example--------------------------

      In your initialize() section add the filter time frame of your choice. We will use 400 as shown there in your post.

      protected override void Initialize()
      {
      Add(PeriodType.Minute, 400); //always remember that these will be index to 1 since
      index 0 is your primary time frame which is 2 min
      }

      When you try to access it the follow this one:

      protected override void OnBarUpdate()
      {
      if(Stochastics(BarsArray[1], 5, 2, 7)[0] > 100)
      {
      Print("Stochastics current value in 400 minute:" +Stochastics(BarsArray[1],5, 2, 7)[0]);
      }
      }


      I hope it gives you an idea.

      Comment


        #4
        thanks I will look into this but I have never done any coding so it will take me some time to figure it out .

        Comment


          #5
          Originally posted by price777999 View Post
          thanks I will look into this but I have never done any coding so it will take me some time to figure it out .
          Just let me know when you need some help that could make it more faster.Email me at [email protected] for more information.

          Comment


            #6
            Hello price777999,
            In such scenario you may consider to contact any of our independent NinjaScript consultants. You can get the list of our NinjaScript consultants from here http://www.ninjatrader.com/partners#...pt-Consultants
            JoydeepNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            671 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            379 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            111 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            575 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            582 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X