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)
Accessing chart region 1 data from chart region 2 study?
Basically I have a cci study that is in chart region 2, and I would like it to access the EMA data I have in chart region 1 (overlayed on price), how can I access the EMA data from the CCI study?
Can you help answer these questions from other members on NexusFi?
First, thanks for responding, and that did help, however, for some reason I'm running into a snag using multiple studies:
My layout is a ZB daily chart with:
1.EMA 13
2.EMA 34(based on HLC avg)
3.SMA 200
I'm trying to access those three values from my CciSystem.cpp study.
For debugging purposes, I have an sc.AddMessageToLog() spitting out the values. As you can see, the *only* value that is being returned is the emaFast() data. ->(EMA 13);
Last hack, I tried using sc.Subgraph[0].Arrays[x] (Thinking that maybe the values were getting overwritten somehow) and still the same result. What am I missing here?
NOTE: I've been compiling this with VS Studio 2010 so #includes may have to be 'revisited'
I'm reposting my cpp file for anyone to see, but it does work. Basically, the cci study uses the ema data in the main graph to color it's (cci) histogram. This, for me, is still not complete, but is a working version of what I am going for. If anyone knows a more 'elegant' way to do this, beautiful, let me know.