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)
It's because you never defined a value for your plot DataSeries (PCum).
PCum.Set(value), same as the above example. Except for Plot's, you don't need to do the #variables and #init stuff, because the DataSeries is handled internally. You just need to .Set it.
If it is still unclear, post the entire indicator.
This is what I understood from what you wrote above. Got an error this time. so can't export.
#Variables = Blank
#Init = Added the 2 lines i mentioned above
#onbarupdate
PCum.Set((Close[0]-Open[0])/(High[0]-Low[0]));
Error message: PCum does not exist in the current context. CS0103
I'm on my notebook, no NT here or I could just do this for you in 30 seconds and post it . You can still attach the .cs file so I (or others) can look at it, or if still unanswered tomorrow I will try to remember to come back to the thread.
It's really quite simple. You've probably removed something you shouldn't have, have a type-o, or have manually changed the Plot name without updating the public DataSeries in the #params section.
BigMike, I think one of the issues could be when the denominator (i.e High[0]-Low[0] =0). In such a situation, how would I resolve this issue as per your code?
nice idea !
what is more interesting is that
if to plot 1 period MFI (money flow index) and Kaywai index together they looks quite similar.
But if to plot
OBV (on balance volume)
MFI in 3 period
and Kayawai index, "picture" becomes even more interesting
however, "as usual" it's "not working" on treasures
P.s. just don't know if that indicator already "completely created"