Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Need some help referencing a value of a secondary Time Series....
Howdy. I have been bashing my brains in trying to get this to work.
I simply want to create an indie that adds a secondary dataSeries to whatever chart the indie is added to. So say I have a 4r chart, I would like to add a secondary series in the indie of say 240 minutes, and plot the open of that 240min Data Series to the chart.
So what it would look like is shown in the picture below. Where each red line plotted is the Open of the new 4 hour bar that opens.
I have tried many things, I have tried to use the "Opens[0][0]" WITHIN the barsInProgress ==1. I have tried using a negative index in the barsinprogress==1.
This seems to be something simple that I am overlooking.
Also in the code, above I have added the the 240 minute dataSeries above.
Can you help answer these questions from other members on NexusFi?
Hehe, I thought that was an error the first time I saw it too.
That feature is HERE. There is also a Lows, Highs and Closes as well. I think its the 'preferred' method of reference when working with multi-timeframe series.
I have something workable. It seems to be off by a tic or two in certain places though.
But what I did was create a simple indicator that does nothing but capture the Open/HIgh/Low values and stores them as an exposed dataSeries. Why I have to do this I don't understand as those values should be readily available?
But then from my main script, passed the secondary DataSeries I have added to that simple indicator mentioned above, and capture that open value and plot it on a chart.