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


SwingRay2 for strategy
Updated: Views / Replies:7,141 / 38
Created: by Trader.Jon Attachments:8

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
 8  
 
Thread Tools Search this Thread
 

SwingRay2 for strategy

  #11 (permalink)
Elite Member
Atkinson, NH USA
 
Futures Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker/Data: NinjaTrader Brokerage
Favorite Futures: Futures, CL, ES, ZB
 
NJAMC's Avatar
 
Posts: 1,925 since Dec 2010
Thanks: 2,962 given, 2,294 received


DarrenH View Post
Hi Jon

Just wondered if you got it figured out, i would like to also use the LastSwingHighValue as a target.

ProfitTarget1 == SwingRay().LastSwingHighValue

I changed these 2 lines from private to public.
public double lastSwingHighValue = double.MaxValue;
public double lastSwingLowValue = double.MinValue;

If anybody has any ideas, programming newbie!
Thanks

Hi,

What happened when you tried this modification? You should then be able to access the two variables...

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Reply With Quote
 
  #12 (permalink)
Elite Member
Prague, Czech republic
 
Futures Experience: Beginner
Platform: NinjaTrader/ZF
Favorite Futures: ES, TF
 
Posts: 79 since Jul 2010
Thanks: 41 given, 34 received

Hi guys,

in the attachment you can find the fixed indi.

Cheers,
Daniel

Attached Files
Register to download File Type: zip SwingRays2.zip (3.3 KB, 49 views)
Reply With Quote
The following 2 users say Thank You to Eubie for this post:
 
  #13 (permalink)
Elite Member
Prague, Czech republic
 
Futures Experience: Beginner
Platform: NinjaTrader/ZF
Favorite Futures: ES, TF
 
Posts: 79 since Jul 2010
Thanks: 41 given, 34 received


Sorry, here's the already absolutely bugless version Had a typo in colors...

Attached Files
Register to download File Type: zip SwingRays2_Corrected.zip (3.3 KB, 133 views)
Reply With Quote
The following 9 users say Thank You to Eubie for this post:
 
  #14 (permalink)
Membership Temporarily Revoked
NYC
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Interactive Brokers
Favorite Futures: forex
 
Posts: 38 since Aug 2011
Thanks: 9 given, 25 received


Eubie View Post
Sorry, here's the already absolutely bugless version Had a typo in colors...

Nice job, you have completely rewritten the indicator. Your code is faster than the original Swing Ray

Reply With Quote
The following user says Thank You to BankRobberNT for this post:
 
  #15 (permalink)
Elite Member
Prague, Czech republic
 
Futures Experience: Beginner
Platform: NinjaTrader/ZF
Favorite Futures: ES, TF
 
Posts: 79 since Jul 2010
Thanks: 41 given, 34 received

Hello guys and gals,

is there an option to be set that would allow me to disable indicator selecting on a chart? Many times when I click the chart (to move a stop for example), ninja thinks I want to select swingrays. Is there a way to generally disable indicator selecting via clicking?

Many thanks,
Daniel

Reply With Quote
 
  #16 (permalink)
Elite Member
Cotswolds UK
 
Futures Experience: Intermediate
Platform: NT7, Multicharts
Broker/Data: Mirus,Amp,ZenFire
Favorite Futures: Fdax
 
DarrenH's Avatar
 
Posts: 62 since Mar 2010
Thanks: 93 given, 23 received

Hi NJAMC

Y it didnt work.
But i did it a slightly different way with just the Swing Indy, this works almost all the time but not as
clean as i would have liked it. Probably not the best way! Sorry for late reply.

LastSwingHighBar = Swing(3).SwingHighBar(1,1,30);
LastSwingLowBar = Swing(
3).SwingLowBar(1,1,30);
LastSwingHigh = High[LastSwingHighBar] ;
LastSwingLow = Low[LastSwingLowBar] ;

Regards

DarrenH



NJAMC View Post
Hi,

What happened when you tried this modification? You should then be able to access the two variables...


Reply With Quote
The following user says Thank You to DarrenH for this post:
 
  #17 (permalink)
Membership Temporarily Revoked
NYC
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Interactive Brokers
Favorite Futures: forex
 
Posts: 38 since Aug 2011
Thanks: 9 given, 25 received


DarrenH View Post
Hi NJAMC

Y it didnt work.
But i did it a slightly different way with just the Swing Indy, this works almost all the time but not as
clean as i would have liked it. Probably not the best way! Sorry for late reply.

LastSwingHighBar = Swing(3).SwingHighBar(1,1,30);
LastSwingLowBar = Swing(
3).SwingLowBar(1,1,30);
LastSwingHigh = High[LastSwingHighBar] ;
LastSwingLow = Low[LastSwingLowBar] ;

Regards

DarrenH

Original swing indicators generate lot of duplicate swings, that's one of the problem using them in a strategy

Reply With Quote
The following user says Thank You to BankRobberNT for this post:
 
  #18 (permalink)
 Vendor: www.htech.net 
Saint Louis, Mo., USA
 
Futures Experience: Advanced
Platform: NinjaTrader, Tradestation
Broker/Data: Amp/CQG, Velocity/TT, Kinetick, TS
Favorite Futures: Anything That Moves..
 
EDGE's Avatar
 
Posts: 127 since Aug 2010
Thanks: 77 given, 220 received


BankRobberNT View Post
If you are referring to my post, the code has been already shared in form of the indicator. If you want to work on a new project you gotta be able to extract, and modify that simple code for your needs. I don't see how could mine completely rewritten code help you, which is btw far more complex and advanced, written in special way and much harder to understand.


Where might I find this code for the indy you've shared? I didn't see any reference to it in this thread, although it's very possible I missed it.. Recently I just shared my hacked version of v2 I did some time ago.. Your welcome to take a look and share any feedback..

https://futures.io/elite-circle/1261-want-your-ninjatrader-indicator-created-free-475.html#post211426





Reply With Quote
 
  #19 (permalink)
 Vendor: www.htech.net 
Saint Louis, Mo., USA
 
Futures Experience: Advanced
Platform: NinjaTrader, Tradestation
Broker/Data: Amp/CQG, Velocity/TT, Kinetick, TS
Favorite Futures: Anything That Moves..
 
EDGE's Avatar
 
Posts: 127 since Aug 2010
Thanks: 77 given, 220 received


BankRobberNT View Post
If you are referring to my post, the code has been already shared in form of the indicator. If you want to work on a new project you gotta be able to extract, and modify that simple code for your needs. I don't see how could mine completely rewritten code help you, which is btw far more complex and advanced, written in special way and much harder to understand.


hmmm.. guess I didn't realize you were a vendor. I should have looked at that and checked out your website first.. No Offense, but you are Not Welcome!!! to use any of my ideas in your indys and charge for them!!! I Will Be Watching!!! To many people here give more than there fair share of time, knowledge, and experience helping members at no charge, for someone else to come in, take those ideas, and profit from them!! Your swingrays, and multiperiod bars are freely available here on the forums if your an elite member! And if your not an Elite Member... Shame on You!!!





Reply With Quote
The following 2 users say Thank You to EDGE for this post:
 
  #20 (permalink)
Elite Member
Buckeye Nation
 
Futures Experience: Intermediate
Platform: Ninja Trader
Broker/Data: Amp/CQG, TOS
Favorite Futures: CL, 6E, YM and ES
 
Posts: 199 since Jul 2010
Thanks: 142 given, 234 received



EDGE View Post
hmmm.. guess I didn't realize you were a vendor. I should have looked at that and checked out your website first.. No Offense, but you are Not Welcome!!! to use any of my ideas in your indys and charge for them!!! I Will Be Watching!!! To many people here give more than there fair share of time, knowledge, and experience helping members at no charge, for someone else to come in, take those ideas, and profit from them!! Your swingrays, and multiperiod bars are freely available here on the forums if your an elite member! And if your not an Elite Member... Shame on You!!!


... and seriously, this guy named his indicator website "bankrobber(s)", how appropriate.

Reply With Quote

Reply



futures io > > > > > SwingRay2 for strategy

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Call ATM Strategy on an automated strategy to control position jsengxx NinjaTrader Programming 7 May 31st, 2016 05:51 PM
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
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 11:38 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-17 in 0.15 seconds with 20 queries on phoenix via your IP 54.221.73.186