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

"Temporary" indicator

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

    "Temporary" indicator

    Hi,
    Before, I start to try to write the code, I would like any suggestions that may help me programming the following:
    I use 30min bars. I calculate, for instance, a 3-bars SMA.
    Let´s say right now it is 10.00, so I have 3 bars, 9.00am, 9.30am and 10.00am.
    Now I have to wait for 30 minutes in order to get a new bar (10.30am).

    Up to here, nothing new. Here is where it gets complicated for me.
    Instead of waiting 30 minutes, I would like to wait 5 minutes and calculate a "temporary" SMA using the closing price of this 5 minute bar (10.05 am) and the 9.30 bar and the 9.00 bar. Then, another 5 min later, calculate the SMA of 10.10, 9.30 and 9.00. Therefore, I would get 5 temporary SMA before I get the definitive one 30min later.
    I know I have to use two timeframes, that is allright, but how do I calculate this temporary SMA?
    Anyone who has done something similar wants to lighten me in this issue?
    Thanks!!
    Juan Rivera

    #2
    >> I know I have to use two timeframes, that is allright
    Unfortunately multi series indicators are not supported at this time. This is on our list for NT7 (beta by end of this year).

    Comment


      #3
      Oh, that is great. But before that happens, Is there any way out?
      I am really limited in programming, but I guess I could capture this 5 min bar on a variable and calculate a SMA with this variable and the rest of the data untouched... I just do not know how...

      Comment


        #4
        You probably should be able to code that in NinjaScript. However, this requires massive coding which is beyond what we can provide support for. As last resort you could contact a certified NinjaScript consultant: http://www.ninjatrader.com/webnew/pa...injaScript.htm

        Comment


          #5
          Ok thanks, i think I will use their services.

          /Juan

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by JGriff5646, Today, 10:02 PM
          0 responses
          8 views
          0 likes
          Last Post JGriff5646  
          Started by AdamDJ8, Today, 09:18 PM
          0 responses
          3 views
          0 likes
          Last Post AdamDJ8
          by AdamDJ8
           
          Started by knowmad, Today, 03:52 AM
          2 responses
          29 views
          0 likes
          Last Post knowmad
          by knowmad
           
          Started by ETFVoyageur, Today, 07:05 PM
          0 responses
          11 views
          0 likes
          Last Post ETFVoyageur  
          Started by Orion815, 05-02-2024, 08:39 AM
          2 responses
          18 views
          0 likes
          Last Post Orion815  
          Working...
          X