NexusFi: Find Your Edge


Home Menu

 





rSqueeze for strategy


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one dsraider with 5 posts (14 thanks)
    2. looks_two Big Mike with 3 posts (3 thanks)
    3. looks_3 hawks67 with 3 posts (1 thanks)
    4. looks_4 zeller4 with 2 posts (1 thanks)
      Best Posters
    1. looks_one dsraider with 2.8 thanks per post
    2. looks_two Big Mike with 1 thanks per post
    3. looks_3 zeller4 with 0.5 thanks per post
    4. looks_4 Henrik with 0.5 thanks per post
    1. trending_up 11,161 views
    2. thumb_up 20 thanks given
    3. group 5 followers
    1. forum 15 posts
    2. attach_file 2 attachments




 
Search this Thread

rSqueeze for strategy

  #1 (permalink)
dsraider
New York, NY
 
Posts: 142 since Dec 2009
Thanks Given: 41
Thanks Received: 87

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

Can you help answer these questions
from other members on NexusFi?
Futures True Range Report
The Elite Circle
Are there any eval firms that allow you to sink to your …
Traders Hideout
Deepmoney LLM
Elite Quantitative GenAI/LLM
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
60 thanks
Funded Trader platforms
43 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #2 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,399 since Jun 2009
Thanks Given: 33,175
Thanks Received: 101,541

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

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
dsraider
New York, NY
 
Posts: 142 since Dec 2009
Thanks Given: 41
Thanks Received: 87


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)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,399 since Jun 2009
Thanks Given: 33,175
Thanks Received: 101,541

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

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #5 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,399 since Jun 2009
Thanks Given: 33,175
Thanks Received: 101,541

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

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #6 (permalink)
dsraider
New York, NY
 
Posts: 142 since Dec 2009
Thanks Given: 41
Thanks Received: 87

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

Thanks for doing this.

Dave

Attached Files
Elite Membership required to download: RSqueeze.zip
Reply With Quote
  #7 (permalink)
dsraider
New York, NY
 
Posts: 142 since Dec 2009
Thanks Given: 41
Thanks Received: 87

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)
dsraider
New York, NY
 
Posts: 142 since Dec 2009
Thanks Given: 41
Thanks Received: 87

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
  #9 (permalink)
Henrik
Berlin, Germany
 
Posts: 33 since Sep 2009
Thanks Given: 12
Thanks Received: 6

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
Click image for larger version

Name:	RSqueezeRightSide.PNG
Views:	636
Size:	26.5 KB
ID:	10029  
Reply With Quote
  #10 (permalink)
Henrik
Berlin, Germany
 
Posts: 33 since Sep 2009
Thanks Given: 12
Thanks Received: 6



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
Thanked by:




Last Updated on September 4, 2013


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts