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 Trader.Jon with 2 posts (0 thanks)
      Best Posters
    1. looks_one pam421 with 4 thanks per post
    2. looks_two DarrenH with 1.5 thanks per post
    3. looks_3 Eubie with 1.1 thanks per post
    4. looks_4 EDGE with 0.8 thanks per post
    1. trending_up 16,053 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

  #11 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,395


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
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
MC PL editor upgrade
MultiCharts
How to apply profiles
Traders Hideout
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #12 (permalink)
 Eubie 
Prague, Czech republic
 
Experience: Beginner
Platform: NinjaTrader/ZF
Trading: ES, TF
Posts: 140 since Jul 2010
Thanks Given: 292
Thanks Received: 97

Hi guys,

in the attachment you can find the fixed indi.

Cheers,
Daniel

Attached Files
Elite Membership required to download: SwingRays2.zip
Reply With Quote
Thanked by:
  #13 (permalink)
 Eubie 
Prague, Czech republic
 
Experience: Beginner
Platform: NinjaTrader/ZF
Trading: ES, TF
Posts: 140 since Jul 2010
Thanks Given: 292
Thanks Received: 97


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

Attached Files
Elite Membership required to download: SwingRays2_Corrected.zip
Reply With Quote
  #14 (permalink)
 BankRobberNT 
NYC
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Interactive Brokers
Trading: forex
Posts: 38 since Aug 2011


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
  #15 (permalink)
 Eubie 
Prague, Czech republic
 
Experience: Beginner
Platform: NinjaTrader/ZF
Trading: ES, TF
Posts: 140 since Jul 2010
Thanks Given: 292
Thanks Received: 97

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)
 
DarrenH's Avatar
 DarrenH 
Cotswolds UK
 
Experience: Intermediate
Platform: NT7, Multicharts
Broker: Mirus,Amp,ZenFire
Trading: Fdax
Posts: 64 since Mar 2010
Thanks Given: 95
Thanks Received: 23

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
Thanked by:
  #17 (permalink)
 BankRobberNT 
NYC
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Interactive Brokers
Trading: forex
Posts: 38 since Aug 2011


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
  #18 (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
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..







Reply With Quote
  #19 (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
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
Thanked by:
  #20 (permalink)
 kulu 
Buckeye Nation
 
Experience: Intermediate
Platform: Ninja Trader
Broker: Amp/CQG, TOS
Trading: CL, 6E, YM and ES
Posts: 213 since Jul 2010
Thanks Given: 159
Thanks Received: 242



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




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