NexusFi: Find Your Edge


Home Menu

 





SwingRay2 for strategy


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one EDGE with 12 posts (9 thanks)
    2. looks_two BankRobberNT with 12 posts (3 thanks)
    3. looks_3 Eubie with 10 posts (11 thanks)
    4. looks_4 DarrenH with 2 posts (3 thanks)
      Best Posters
    1. looks_one pam421 with 4 thanks per post
    2. looks_two Eubie with 1.1 thanks per post
    3. looks_3 EDGE with 0.8 thanks per post
    4. looks_4 BankRobberNT with 0.3 thanks per post
    1. trending_up 16,029 views
    2. thumb_up 34 thanks given
    3. group 18 followers
    1. forum 40 posts
    2. attach_file 8 attachments




 
Search this Thread

SwingRay2 for strategy

  #31 (permalink)
 Eubie 
Prague, Czech republic
 
Experience: Beginner
Platform: NinjaTrader/ZF
Trading: ES, TF
Posts: 139 since Jul 2010
Thanks Given: 290
Thanks Received: 93

Hello super,

what is eswingrays? Searching futures.io (formerly BMT) did not reveal anything. Swingrays...are just NT"s own Swings which end only when they are broken.

EDGE:
I contacted NT support and will be back with an answer as soon as they tell me..

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
What broker to use for trading palladium futures
Commodities
Trade idea based off three indicators.
Traders Hideout
Quant vue
Trading Reviews and Vendors
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #32 (permalink)
 supermht 
Naperville IL
 
Experience: Intermediate
Platform: ninjatrader
Broker: NT broker
Trading: NQ ES 6E GC CL
Posts: 962 since Feb 2010
Thanks Given: 1,189
Thanks Received: 661

here is eswingrays, this is what I mentioned on last post.



Reply With Quote
  #33 (permalink)
 
EDGE's Avatar
 EDGE 
Saint Louis, Mo., USA
 
Experience: Advanced
Platform: NinjaTrader, Tradestation
Broker: Amp/CQG, Velocity/TT, Kinetick, TS
Trading: Anything That Moves..
Frequency: Daily
Duration: Minutes
Posts: 209 since Aug 2010
Thanks Given: 98
Thanks Received: 392



supermht View Post
here is eswingrays, this is what I mentioned on last post.



@supermht

I just took the swingrays2 indy that was posted here on the forums and hacked it up to try and fix some things I didn't like about how it was working, then also added the ray labeling to it. I just named it eswingrays because that's how I name all my personal modifications to not confuse things, but I had nothing to do with the original code. I did look at the code that Eubie is using, and to be honest, it does look much more efficient! He should prob take the labeling portion out of the one I modified, or add something similar (as I'm not sure just how efficiently I did that) and then once he gets those values exposed, his modified version would probably be a better alternative to the one I posted..


.

Reply With Quote
Thanked by:
  #34 (permalink)
 BankRobberNT 
NYC
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Interactive Brokers
Trading: forex
Posts: 38 since Aug 2011

Here you go guys, hope this helps, didn't have time to test it, but hope that the exposed values work this time

Attached Files
Elite Membership required to download: SwingRays2.zip
Reply With Quote
  #35 (permalink)
 
EDGE's Avatar
 EDGE 
Saint Louis, Mo., USA
 
Experience: Advanced
Platform: NinjaTrader, Tradestation
Broker: Amp/CQG, Velocity/TT, Kinetick, TS
Trading: Anything That Moves..
Frequency: Daily
Duration: Minutes
Posts: 209 since Aug 2010
Thanks Given: 98
Thanks Received: 392


BankRobberNT View Post
Here you go guys, hope this helps, didn't have time to test it, but hope that the exposed values work this time

@BankRobberNT

Thanks for try'n, but still no luck.. Not sure why, looks like it should work to me.. but I get this when printing values from another indy..




Using a dataseries is probably the better method if you ever want to see anything other than just the very last value.

But if anyone is going to try and get this to work, please properly expose the swing hi/lo's and bar#'s values as well.

Also any updates should probably be renamed to swingrays3beta or something (anything) new so that no one confuses this with what is already posted on the forums, or doesn't overwrite an existing indy.. Thanks!


.

Reply With Quote
  #36 (permalink)
 BankRobberNT 
NYC
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Interactive Brokers
Trading: forex
Posts: 38 since Aug 2011


BankRobberNT View Post
Best way to use swing rays is to modify the code as a function in your strategy.

There are many reasons why I said this

Reply With Quote
  #37 (permalink)
 Eubie 
Prague, Czech republic
 
Experience: Beginner
Platform: NinjaTrader/ZF
Trading: ES, TF
Posts: 139 since Jul 2010
Thanks Given: 290
Thanks Received: 93

Hello guys,

so I posted on NT forum ( Making a variable public - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum ) and ... the help did not help that much.

The error seems to be generated by accessing
 
Code
Swings.LastLowSwingBreakBar
where the accessed variable is said not to be allocated yet. However, as it's an int, there is no need to dynamically allocate it, so both me, Bertrand and now probably even you are surprised

I tried making a version with dataseries, but the problem was the same. Thank you for the interest though

Daniel

Reply With Quote
  #38 (permalink)
 skann 
California
 
Experience: Intermediate
Platform: NinjaTrader, TOS, Sierra
Trading: ES, SPY Options
Posts: 55 since Jun 2013
Thanks Given: 345
Thanks Received: 28


EDGE View Post
@BankRobberNT

Thanks for try'n, but still no luck.. Not sure why, looks like it should work to me.. but I get this when printing values from another indy..




Using a dataseries is probably the better method if you ever want to see anything other than just the very last value.

But if anyone is going to try and get this to work, please properly expose the swing hi/lo's and bar#'s values as well.

Also any updates should probably be renamed to swingrays3beta or something (anything) new so that no one confuses this with what is already posted on the forums, or doesn't overwrite an existing indy.. Thanks!


.

Any Luck with this. I have been thinking about coding a strategy for this. Please provide the details.

Reply With Quote
  #39 (permalink)
 
EDGE's Avatar
 EDGE 
Saint Louis, Mo., USA
 
Experience: Advanced
Platform: NinjaTrader, Tradestation
Broker: Amp/CQG, Velocity/TT, Kinetick, TS
Trading: Anything That Moves..
Frequency: Daily
Duration: Minutes
Posts: 209 since Aug 2010
Thanks Given: 98
Thanks Received: 392


skann View Post
Any Luck with this. I have been thinking about coding a strategy for this. Please provide the details.

@skann


Wow this is an old thread I'd forgot all about.. Came across a post in Want your NT indicator created for free that was asking if someone would expose the values in this indy and even referred back to this thread.. Since I just posted a revised version over there, thought I might as well post it here in the original thread it started in.. I cleaned up the code a bit and exposed the last swing high and low values so that it could be used in a strategy or bloodhound.. None the less this was some pretty old code, and could still use some more cleaning up.. Didn't spend a lot of time on it, as it's several years old and about 10 versions behind what I'm currently using .. But here ya go.. Enjoy!


Edge

Attached Thumbnails
Click image for larger version

Name:	eSwingRays3.jpg
Views:	310
Size:	313.1 KB
ID:	176930  
Attached Files
Elite Membership required to download: eSwingRays3.zip
Reply With Quote
Thanked by:
  #40 (permalink)
eddi0505
Berlin, Germany
 
Posts: 5 since Dec 2015
Thanks Given: 0
Thanks Received: 5



EDGE View Post
@skann


Wow this is an old thread I'd forgot all about.. Came across a post in Want your NT indicator created for free that was asking if someone would expose the values in this indy and even referred back to this thread.. Since I just posted a revised version over there, thought I might as well post it here in the original thread it started in.. I cleaned up the code a bit and exposed the last swing high and low values so that it could be used in a strategy or bloodhound.. None the less this was some pretty old code, and could still use some more cleaning up.. Didn't spend a lot of time on it, as it's several years old and about 10 versions behind what I'm currently using .. But here ya go.. Enjoy!


Edge

Can pls someone make this indicator available for NT8?

Reply With Quote




Last Updated on February 1, 2022


© 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