Swing Hi/Lo points for indicator values? - NinjaTrader Programming | futures io social day trading
futures io futures trading


Swing Hi/Lo points for indicator values?
Updated: Views / Replies:7,569 / 18
Created: by zacharydw00 Attachments:3

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 don’t 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
 3  
 
Thread Tools Search this Thread
 

Swing Hi/Lo points for indicator values?

  #1 (permalink)
Elite Member
Idaho
 
Futures Experience: Intermediate
Platform: NinjaTrader,ToS
Broker/Data: Amp Futures, ToS
Favorite Futures: ES, E7, CL, GC
 
zacharydw00's Avatar
 
Posts: 139 since Aug 2009
Thanks: 81 given, 163 received

Swing Hi/Lo points for indicator values?

Any one know of an indicator or code that will identify the Swing Hi/Lo points of an indicator's output value? NT's Swing indicator uses the High & Low functions, which can't be applied to an ind. value. Thanks.

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

I have solved my question here and have moved on to coding my ind. I've started a new post to gather ideas on filtering bad divergence patterns...
https://futures.io/ninjatrader-programming/3640-post-your-favorite-divergence-ind-here.html#post37639
Thanks, Zac


Last edited by zacharydw00; April 30th, 2010 at 05:17 PM.
 
  #3 (permalink)
Elite Member
Austin, TX
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Currencies
 
hondo69's Avatar
 
Posts: 165 since Jun 2009
Thanks: 57 given, 240 received


Several times I worked to develop such a code without success. So I dug deeper into the code that creates Swing Hi/Lo points and then compared it to other platforms.

I was quite surprised to find NT calculates these points much differently than TradeStation, for example. Seems to me the key is to rewrite the original NT code such that it calculates pivots in a more simplified fashion. Then use that new code as a basis from which an indicator can be constructed that will "remember" these points for use as output values.

Reply With Quote
 
  #4 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 916 received

hi zach...
it is possible to check Swing Hi/Lo points of indicators say like stochastic, but only with costume coding - not as simple indicator on indicator-function.
maybe we will see this in NT 7 now.

i played with this a while ago ago - dont remember exactly how ....

if i find it i will post an example how i did this / tried this.

max-td
Reply With Quote
 
  #5 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 916 received

found it - have a look at this :

 
Code
                            


 double myswinghigh 
=  Swing  (  Stochastics(  714,  4  )  ,  2  )  .SwingHigh 0] ; 
           
 
double myStoch =  Stochastics(  714,  4   )   K  [0] ; 
           

             if  
                (

                
myStoch >   myswinghigh    &&     myswinghigh 50

                

i took stochastics and used it as the input for the NT-Swing-H / L -indicator (.SwingHigh-dataseries here)
of course this is no example for visualisation / plotting now but for a first idea how to use it and for condítionbuilding.

first line calculates the last small Swing-High from stochastic.K
second line = stochastic.K
logic- line : checks if stochastic.K itself breaks its last swing-high AND all is happening above 50 (means in the upper half)

it describes a check for a HigherHigh in stochastic.K so to say.

hope that makes sense.

.

max-td
Reply With Quote
 
  #6 (permalink)
Elite Member
Brooklyn, New York
 
Futures Experience: Intermediate
Platform: Sierra Charts, NinjaTrader, mt4, oanda, some multicharts
Broker/Data: cms forex
Favorite Futures: currency futures, forex
 
Reggy's Avatar
 
Posts: 18 since Apr 2010
Thanks: 22 given, 33 received

This might seem clumsy, but it might work. For example, to find the swing high of a 55 period Stochastics:
55sto<55sto.1
55sto.1<55sto.2
55sto.2<55sto.3
55sto.3<55sto.4
55sto.4<55sto.5
55sto.5>55sto.6
55sto.6>55sto.7
55sto.7>55sto.8
55sto.8>55sto.9
55sto.9>55sto.10

Which shows how little I know about this stuff. Just started looking at Ninjatrader a couple of days ago, and trying to learn stuff. Bye the way, I am impressed with Ninjatrader forum support...I posted an intellisense question with the wizard code and got an answer in 5minutes!

Reply With Quote
 
  #7 (permalink)
Elite Member
Idaho
 
Futures Experience: Intermediate
Platform: NinjaTrader,ToS
Broker/Data: Amp Futures, ToS
Favorite Futures: ES, E7, CL, GC
 
zacharydw00's Avatar
 
Posts: 139 since Aug 2009
Thanks: 81 given, 163 received

Thanks for the suggestions guys. I'll check some of your ideas, but first I have to fix a broken irrigation line before the grass dies. I'll post my results as soon as I get back to testing these ideas.
Thanks.

Reply With Quote
 
  #8 (permalink)
Elite Member
allentown
 
Futures Experience: Advanced
Platform: Ninjatrader, Tradestation
Broker/Data: zen-fire
Favorite Futures: 6e,cl
 
jcar's Avatar
 
Posts: 10 since Apr 2010
Thanks: 1 given, 12 received


zacharydw00 View Post
Any one know of an indicator or code that will identify the Swing Hi/Lo points of an indicator's output value? NT's Swing indicator uses the High & Low functions, which can't be applied to an ind. value. Thanks.

Did you ever find away to program the swing high low indicator so that you can implement it in a trading stradegy?

Reply With Quote
 
  #9 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,335 since Jun 2009
Thanks: 3,548 given, 3,953 received

Answer
This post has been selected as an answer to the original posters question Answer


jcar View Post
Did you ever find away to program the swing high low indicator so that you can implement it in a trading stradegy?

If you mean a strategy using the Swing built-in indicator, it's easy, something like:
 
Code
                            
if (Close[0] > Swing(5).SwingHigh[0]) {

  
Golong();
  
etcetc, ...
}
if (
Close[0] < Swing(5).SwingLow[0]) {
  
GoShort();
  
etcetc, ...


Success requires no deodorant! (Sun Tzu)
Reply With Quote
 
  #10 (permalink)
Elite Member
Near the BEuTiFULL Horse Shoe
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: MBTrading Dukascopy ZenFire
Favorite Futures: $EURUSD when it is trending
 
Trader.Jon's Avatar
 
Posts: 500 since Jul 2009
Thanks: 401 given, 176 received


Sam,

Any thoughts on how to use (code) previous swing levels as profit targets ? I am thinking on as momentum stays above a certain level, then the profit target keeps moving from previous swing level to the next profitable swing level, and then as ROC falls the profit target drops to the price as market order.

Jon

Reply With Quote

Reply



futures io > > > > > Swing Hi/Lo points for indicator values?

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Battlestations: Show us your trading desks and win $750 in prizes

August
 

Ask Me Anything (AMA) w/Rod Casilli @ Collective2

Aug 23
 

Prototyping Python Strategies (part 3, Live Trading) w/Ran Aroussi [1PM ET]

Elite only
 

Develop Strategies and Perfect Execution w/Brannigan Barrett @ Axia Futures

Elite only

Introduction to Phillip Capital futures brokerage services

Aug TBD

How Monte Carlo Analysis Can Help Your Trading w/Kevin Davey

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Swing/Pivot Points trs3042 Traders Hideout 3 November 28th, 2010 09:58 PM
ZigZag indicator but with tick difference shown at the pivot points wuolong NinjaTrader 3 April 6th, 2010 08:59 AM
Printing values from Fractal Indicator eurostoxx NinjaTrader Programming 1 December 14th, 2009 07:22 AM
Referencing values in another indicator or Saroj NinjaTrader Programming 0 September 4th, 2009 11:02 PM
Translating EMA-values to ZN-values or visaversa max-td NinjaTrader Programming 17 June 22nd, 2009 03:42 PM


All times are GMT -4. The time now is 07:43 AM.

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-08-20 in 0.13 seconds with 38 queries on phoenix via your IP 54.144.29.233