Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          656 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          371 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          109 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          574 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          579 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X