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

way to get price based on time in range bar chart

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

    way to get price based on time in range bar chart

    I am using a range bar chart. I want to draw a line representing market open.

    My indicator currently uses tick based data and looks at the tick's time. When the tick's time is at the desired time, the indicator gets the price and wala I have the market open.

    But, if I refresh the screen, I loose this tick based informaiton. My indicator currently resorts to the open of the 1st range bar, which typically is not the open of the market.

    I do know the exact open value is available from a "Time Based" chart, say for example the 5 minute chart.

    Is there a way to obtain "Time Based" bar data from within a "Range Bar" based chart/indicator?

    Example code to look at would be super....

    #2
    tulanch, yes this would be possible with a MultiSeries indicator in our NT7 release, you can Add() a time based series in the Initialize() and then access this bar data via BarsArray, Opens, Closes, Highs, Lows and Times -

    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by AaronKoRn, Today, 09:49 PM
    0 responses
    11 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Today, 08:42 PM
    0 responses
    10 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    11 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,980 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    9 views
    0 likes
    Last Post rbeckmann05  
    Working...
    X