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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            67 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            36 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            59 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            62 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            53 views
            0 likes
            Last Post CarlTrading  
            Working...
            X