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 was lucky enough to not even HAVE "using TradingStudies.NinjaScript.Utility;", so I've been able to incorporate my RSqueeze into a strat, but my problem has to do with secondary timeframes.
My normal way of doing things is thusly:
I instantiate a second timeframe indicator. I accomplish this with this line:
Add(PeriodType.Tick,768);
And then I decide to add the Stochastics from that 768-tick chart with this line:
And when I refer to it in the code below, I use "my768Stoch.K[0]". (Note that the number 1 in the BarsArray refers to the second timeframe. If I had a third timeframe and wanted the Stochastics from that chart, this would be a 2.) Works great.
Thing is, I can't seem to accomplish this same thing with the RSqueeze.
'RSqueeze' is a 'namespace' but is used like a 'type'
I have tried every possible combination I can think of, including using the right-click wizard thingy (all I can do with that is Insert Condition anyway), and nothing compiled. I have been able to successfully use the RSqueeze indicator and its values throughout the strategy, but only for the current timeframe (the timeframe on which the strat is run). I'd really like to be able to incorporate the RSqueeze from a secondary timeframe. Any geniuses out there who can give me a hint?
Definitely not a genius here but try this after looking in the RSqueeze indicator to see what result/value you want.
I could be wrong but I think the reason Stochastic works is it's a built-in.
(btw - not tested)
There are several plots in the RSqueeze, I only picked MyValue in case that's one you want.
But I can't get the RSqueeze syntax to compile. It *should* be something like this:
RSqueeze myRSqueeze = RSqueeze(BarsArray[1], (SqueezeStyle.CounterTrend));
or RSqueeze mySqueeze = RSqueeze(BarsArray[1], RSqueeze(CounterTrend));
or something like it...
Either way, I get this as an error message:
'RSqueeze' is a 'namespace' but is used like a 'type'
And that refers to the RSqueeze in green in the examples above. That part of the syntax (at least!) needs to be something else, and I just can't come up with it.
@dsraider:
I am trying to get the alerts from Rsqueeze indicaror thro' my Ninja Market Analyser but in vain.
Can you help me to modify this code to use it in my Ninja Market analyser so as to give the Long, Squeeze and Short signals, when value is set @1,0 and -1 respectively.
Appreciate your help.
Raj1