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

Issues with getting DoubStochOptimized in Multiple Time Frames

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

    Issues with getting DoubStochOptimized in Multiple Time Frames

    Hi, I am really struggling with Mutliple time frames, and getting seemly simple things working in MTF.

    There seems to be some magic with it. I did manage to get the CCI to work in MTF, using the standard method that will allow an overload to pass in the barsindex of the other time frame - such as:

    CCI(IDataSeries input, int period)[int barsAgo]

    There is no such overload for DoubStochOptimized, and hence I must be missing something.

    What I want to do is what I managed to do with CCI.
    On a Chart - say a 15 min chart of SPXL
    1) Plot the CCI
    2) Plot the CCI from a 30 min chart
    3) Plot the DoubStochOptimized
    4) Plot the DoubStochOptimized from a 30 min chart

    CCI (items 1 and 2 above) works using the attached indicator in this thread.

    ISSUE: What doesn't work is the DoubStochOptimized I followed the same code, but I CANNOT get this to work. I need some guidance on how MTF works and why we can't get our own code to work in MTF.

    I THINK it is due to the Jurik Moving Average that may not be setup right...

    What am I missing please?
    Attached Files

    #2
    Hello DaFish,

    Thank you for your post.

    I would ask the developer of the DoubStochOptimized. However, you could do what is detailed in the video at the following link: https://www.youtube.com/watch?v=x_6BN5SIiig

    Comment


      #3
      Hi Patrick, thanks for the quick response.

      I don't have an issue with the DoubStochOptimized code itself. It works on the same data series.

      Where I am asking for guidance from NT is how this is supposed to be implemented in MTF.

      As per my original post:
      CCI(IDataSeries input, int period)[int barsAgo]
      CCI specifies a data series in which to calculate on. How do I implement this for the DoubStochOptimized indicator? I want it to ONLY act on the TimeFrame 1 data series.

      NOTE: This also calls the Jurik Moving Average which is also custom, that needs to work on the TF1 data series too.

      Originally posted by NinjaTrader_PatrickH View Post
      you could do what is detailed in the video at the following link: https://www.youtube.com/watch?v=x_6BN5SIiig
      I watched that, and although it is great for a visual chart, what I am trying to do is to get the data into a strategy so I can actually trade on it. While it is great to see the indicator, I need to use it and I don't see anyway of grabbing that calculated indicator value other than what I am doing trying to figure out how to calculate this indicator in MTF

      Comment


        #4
        Hello DaFish,

        Thank you for your response.

        Is the IntelliPrompt overload list showing one for the IDataSeries for the DoubStochOptimized indicator?

        Can you provide a link to the indicator?

        Comment


          #5
          Originally posted by NinjaTrader_PatrickH View Post
          Hello DaFish,

          Thank you for your response.

          Is the IntelliPrompt overload list showing one for the IDataSeries for the DoubStochOptimized indicator?

          Can you provide a link to the indicator?
          HI Sorry Patrick, I don't know what that is.... I did attach the DoubStochOptimized code to this thrread though.

          Comment


            #6
            Hello DaFish,

            I will test the MFDStochasticMTF and follow up with you.

            Comment


              #7
              Hello DaFish,

              Thank you for your patience.

              My colleague and I were able to produce results after setting the DaysToLoad (Right Click > Data Series > DaysToLoad) to 60 days.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by andrewtrades, Today, 04:57 PM
              1 response
              4 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by chbruno, Today, 04:10 PM
              0 responses
              3 views
              0 likes
              Last Post chbruno
              by chbruno
               
              Started by josh18955, 03-25-2023, 11:16 AM
              6 responses
              436 views
              0 likes
              Last Post Delerium  
              Started by FAQtrader, Today, 03:35 PM
              0 responses
              6 views
              0 likes
              Last Post FAQtrader  
              Started by rocketman7, Today, 09:41 AM
              5 responses
              19 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Working...
              X