• 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

Obtaining time of a bar which is not based on price data

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

  • NinjaTrader_Bertrand
    replied
    Your observation is correct JoshDance - to access the bars timestamps via the indicator on indicator approach, please add a price series programmatically in your script and then for example use Times[index][barsback] to access them.

    Leave a comment:


  • Obtaining time of a bar which is not based on price data

    My indicator computes a simple median of the last X bars of data. The input series to my indicator will usually either be the VOL indicator, or the Range indicator.

    However, I would also like the ability to exclude certain dates from my calculation. However, if VOL is the input to my indicator, checking the date by accessing "Time[0]" returns a time of 1/1/1800.

    The input to the VOL indicator is some price data series, like the Close. Is there a way to get to the price bar from my indicator? I would like to keep this indicator generic so that it can take any input series and would rather not have to feed it price bars as input so that I can access the dates.

Latest Posts

Collapse

Topics Statistics Last Post
Started by Mykro, Today, 01:00 PM
0 responses
1 view
0 likes
Last Post Mykro
by Mykro
 
Started by jcbnoles, Today, 12:18 PM
1 response
3 views
0 likes
Last Post NinjaTrader_Melissa  
Started by stafe, Today, 11:57 AM
1 response
2 views
0 likes
Last Post NinjaTrader_Jim  
Started by tvaughan4, Today, 11:01 AM
3 responses
10 views
0 likes
Last Post tvaughan4  
Started by Branpo, Today, 10:51 AM
3 responses
14 views
0 likes
Last Post NinjaTrader_ChelseaB  
Working...
X