rSqueeze for strategy - NinjaTrader Programming | futures io social day trading
futures io futures trading


rSqueeze for strategy
Updated: Views / Replies:7,640 / 15
Created: by dsraider Attachments:2

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you dont need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 2  
 
Thread Tools Search this Thread
 

rSqueeze for strategy

  #1 (permalink)
Trading for Fun
New York, NY
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Amp Futures/Zen-Fire
Favorite Futures: ES
 
Posts: 142 since Dec 2009
Thanks: 41 given, 83 received

rSqueeze for strategy

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

Reply With Quote
 
  #2 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,217 received

Dave,

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.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #3 (permalink)
Trading for Fun
New York, NY
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Amp Futures/Zen-Fire
Favorite Futures: ES
 
Posts: 142 since Dec 2009
Thanks: 41 given, 83 received


Morning Mike,

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.

Thanks,
Dave

Reply With Quote
 
  #4 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,217 received

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.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:
 
  #5 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,217 received

Attach the rsqueeze indicator so later I (or someone) can look at it.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:
 
  #6 (permalink)
Trading for Fun
New York, NY
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Amp Futures/Zen-Fire
Favorite Futures: ES
 
Posts: 142 since Dec 2009
Thanks: 41 given, 83 received

Here is the version I have. I'll keep hacking away at it.

Thanks for doing this.

Dave

Attached Files
Register to download File Type: zip RSqueeze.zip (21.6 KB, 479 views)
Reply With Quote
The following 5 users say Thank You to dsraider for this post:
 
  #7 (permalink)
Trading for Fun
New York, NY
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Amp Futures/Zen-Fire
Favorite Futures: ES
 
Posts: 142 since Dec 2009
Thanks: 41 given, 83 received

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.

Dave

Reply With Quote
 
  #8 (permalink)
Trading for Fun
New York, NY
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Amp Futures/Zen-Fire
Favorite Futures: ES
 
Posts: 142 since Dec 2009
Thanks: 41 given, 83 received

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:

Uptrend:
&& RSqueeze(SqueezeStyle.BBSqueeze).PMomentumUp[0] > 0
&& RSqueeze(SqueezeStyle.BBSqueeze).PMomentumUp[0] != Close[1]

Downtrend:
&& RSqueeze(SqueezeStyle.BBSqueeze).NMomentumDown[0] < 0
&& RSqueeze(SqueezeStyle.BBSqueeze).NMomentumDown[0] != Close[1]

Squeeze On (blue dots):
&& RSqueeze(SqueezeStyle.BBSqueeze).SqueezeOn[0] == 0

Mike, thanks a lot for your offer to help.

Dave

Reply With Quote
The following 7 users say Thank You to dsraider for this post:
 
  #9 (permalink)
Trading Apprentice
Berlin, Germany
 
Futures Experience: Intermediate
Platform: MultiCharts, NinjaTrader
Broker/Data: IB
Favorite Futures: FGBL
 
Posts: 33 since Sep 2009
Thanks: 12 given, 6 received

Hi, I need also help.

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?

I find no way

Thank you!

Attached Thumbnails
rSqueeze for strategy-rsqueezerightside.png  
Reply With Quote
 
  #10 (permalink)
Trading Apprentice
Berlin, Germany
 
Futures Experience: Intermediate
Platform: MultiCharts, NinjaTrader
Broker/Data: IB
Favorite Futures: FGBL
 
Posts: 33 since Sep 2009
Thanks: 12 given, 6 received



Henrik View Post
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?

I find no way

I answer myself
Search in the code:

 
Code
private DataSeries MyValue, MyValue2;
Change to:

 
Code
public DataSeries MyValue, MyValue2;

Reply With Quote
The following user says Thank You to Henrik for this post:

Reply



futures io > > > > > rSqueeze for strategy

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Utility To Transpose Optimized Strategy Values From Excel Output to Actual Strategy mercuryfx NinjaTrader 5 April 7th, 2012 04:59 PM
Ninjatrader7 ATM Strategy combine with Strategy Wizard Ninja Script schuster21 NinjaTrader Programming 4 July 4th, 2011 05:39 PM
RSqueeze Strategy for stocks? prisonbreaker82 Elite Automated Trading 1 August 6th, 2010 11:02 PM
Ninja Strategy multi-timeframe issue/Strategy to indicator nw123 NinjaTrader Programming 2 December 20th, 2009 07:24 PM


All times are GMT -4. The time now is 04:44 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-11 in 0.12 seconds with 20 queries on phoenix via your IP 54.226.132.197