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)
First, thanks to Roonius for this excellent indicator. I highly recommend it.
Now, has anyone been able to use it successfully in a strat? I've added "using RSqueeze.Utility;" to declarations but any indicator condition I've tried gives me error messages:
&& RSqueeze(RSqueeze.Utility.SqueezeStyle.BBSqueeze).PMomentumUp[1] > 1
'NinjaTrader.Strategy.Strategy.RSqueeze(RSqueeze.Utility.SqueezeStyle)' is a 'method', which is not valid in the given context CS0119 - click for info
&& RSqueeze(SqueezeStyle.BBSqueeze).PMomentumUp[1] > 1
'SqueezeStyle' is an ambiguous reference between 'TradingStudies.NinjaScript.Utility.SqueezeStyle' and 'RSqueeze.Utility.SqueezeStyle' CS0104 - click for info
The best overloaded method match for 'NinjaTrader.Strategy.Strategy.RSqueeze(RSqueeze.Utility.SqueezeStyle)' has some invalid arguments CS1502 - click for info
Argument '1': cannot convert from 'TradingStudies.NinjaScript.Utility.SqueezeStyle' to 'RSqueeze.Utility.SqueezeStyle' CS1503 - click for info
Thanks,
Dave
Can you help answer these questions from other members on NexusFi?
Yes it can be done. I am on my notebook and don't have NT and I've not used that particular indicator so can't quote the exact code. But, you can make NT do it for you most likely. Using the strategy editor, you can right-click and select the indicator via the wizard/dialog box, in which case the editor will automagically select the right syntax for you.
Thanks for your quick reply. I actually did do that but it still won't let me compile. The booleans wouldn't work either. I'l start throwing things and kicking my PC and will see if that helps.
Yeah I don't use the Utility method for this very reason, plus the fact it adds an extra layer of compatibility problems with multiple files and revisioning.
You could always relocate the Utility code to the actual rSqueeze indicator itself, and use an enum inside rSqueeze... but anyway that is a lot of work for a workaround. I don't have NT on this computer so can't test it.
I might have found the issue. By commenting out "using TradingStudies.NinjaScript.Utility;" under declarations, which I thought I needed for the SuperTrend, it now complies and plots arrows. I may be jumping the gun here, as there may still be a problem, but I wanted to throw that out there just in case.
Yep, that was it. Deleting that declaration, which I guess I didn't even need, made Dave much less of a dull boy. For anyone interested in using it in a strat, here's the code:
How can I access in a Strategy on the yellow number you can see in the picture?
Can it be that one has no direct access to this number from a strategy?