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)
I'm trying to create a VWAP Oscillator in NT7 and thought I'd use the NT indicator Volume Oscillator as a template.
The Volume Oscillator code looks like this:
But I get a bunch of errors like ) expected and statement expected. Can anyone see where I went wrong? Would the "SD1 Upper" plot of VWAP indicator be VWAP.SD1 Upper[0]?
I'm obviously no programming savant and would appreciate all help on this,
Mpe
Can you help answer these questions from other members on NexusFi?
Thanks, that fixed the errors. But I get new ones when I try to compile, "NinjaTrader.Indicator.Indicator.VWAP() is a method which is not valid in the given context."
For now: are you sure there is a dataseries like VWAP in the original indicator? The indicator I've seen has VWAPLine as the name of the main plot. Try replacing VWAP[0] with VWAPLine[0]
I'm using the indicator from post 258 in this thread on the NT forum. I'm pretty sure the name of the plot is just VWAP or at least that's what it's called in the indicator settings. As for parameters there are couple. Start time, end time, Accuracy warning (true/false), Std Dev calc mode ( VWAP/VWAPavg) etc. Would I need to insert all that in my script?