• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Reset indicator each 60 minutes

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

  • NinjaTrader_JoshP
    replied
    Hi whitegun,

    If you want an example try looking at the VWAP indicator. It is not the simplest code to do what you want, but it does do calculation resets somewhere in there.

    Your idea for referencing Bars.SinceSession will work too.

    Leave a comment:


  • whitegun
    replied
    By the way, just thought, this also could be achived mathematicly by referencing Bar.SinceSession, eaven this would be a complex and not so nice solution.

    Leave a comment:


  • whitegun
    replied
    Thanks,

    It's a pitty there are no referance samples!
    Isn't there any NT indicatar doing this so I could have a look on it?

    I supose I must take somehow seccion begin as 0 valuo and from there on doing something like counting the minutes to the point I want (60min for example) and when that point is reached turn that point into 0 and do the same proces again, and again and again ...

    Maybe someone could be so kind and provide a example for this

    Thanks

    Leave a comment:


  • NinjaTrader_Ray
    replied
    For sure this is possible. You would somehow have to mark values within the time ranges you specify. Working with Time[x] property will accomplish this. Short of doing the actual coding, we would not have a reference sample.

    Leave a comment:


  • whitegun
    replied
    Let me explain this with a example because not shure if I explained myself correctly.

    Is it possible for example to add a piece of code to the CurrentDayOHL indicator so that in stead of him reseting himself each day the indicator resets himself each 30, 60 or whatever minutes, than I basically will get a new set of OHL marcs each 30 minutes for example (30 min OHL in stead of daily).

    Leave a comment:


  • NinjaTrader_Dierk
    replied
    Not sure I follow. An indicator bases it calcs of the chart data it runs on. If you're looking for blanking out the chart (data) every 60 mins, then sorry, this is not supported.

    Leave a comment:


  • whitegun
    started a topic Reset indicator each 60 minutes

    Reset indicator each 60 minutes

    How can I let a indicator reset himself each certain time and start his calculation from 0 again, for example each 15, 30 o 60 minutes (or what ever)?

    Any simple way to do this??

    Thanks

Latest Posts

Collapse

Topics Statistics Last Post
Started by HiddenPhilosopher, Yesterday, 11:58 PM
1 response
10 views
0 likes
Last Post NT-Roland  
Started by vofupba6, Today, 02:54 AM
0 responses
6 views
0 likes
Last Post vofupba6  
Started by Johnny, Today, 02:37 AM
0 responses
5 views
0 likes
Last Post Johnny
by Johnny
 
Started by waliopaozae, Today, 01:44 AM
0 responses
9 views
0 likes
Last Post waliopaozae  
Started by Futurestrader00, Today, 01:35 AM
0 responses
12 views
0 likes
Last Post Futurestrader00  
Working...
X