NexusFi: Find Your Edge


Home Menu

 





Support and resistance indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Adamus with 33 posts (32 thanks)
    2. looks_two bgeorge with 9 posts (1 thanks)
    3. looks_3 Cloudy with 6 posts (3 thanks)
    4. looks_4 Abde with 5 posts (2 thanks)
      Best Posters
    1. looks_one trendisyourfriend with 1.7 thanks per post
    2. looks_two Adamus with 1 thanks per post
    3. looks_3 COTtrader with 0.7 thanks per post
    4. looks_4 Cloudy with 0.5 thanks per post
    1. trending_up 31,550 views
    2. thumb_up 47 thanks given
    3. group 17 followers
    1. forum 63 posts
    2. attach_file 15 attachments




 
Search this Thread

Support and resistance indicator

  #11 (permalink)
 
Adamus's Avatar
 Adamus 
London, UK
 
Experience: Beginner
Platform: NinjaTrader, home-grown Java
Broker: IB/IQFeed
Trading: EUR/USD
Posts: 1,085 since Dec 2010
Thanks Given: 471
Thanks Received: 789

Ken,

do you use this Swing Indicator? Just looking at it, I wonder whether it shows some sort indicator of chop or the extent of choppiness, like how many times the swing count is broken?

You can discover what your enemy fears most by observing the means he uses to frighten you.
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
My NQ Trading Journal
14 thanks
HumbleTraders next chapter
11 thanks
GFIs1 1 DAX trade per day journal
11 thanks
  #12 (permalink)
 
Adamus's Avatar
 Adamus 
London, UK
 
Experience: Beginner
Platform: NinjaTrader, home-grown Java
Broker: IB/IQFeed
Trading: EUR/USD
Posts: 1,085 since Dec 2010
Thanks Given: 471
Thanks Received: 789

Totally re-wrote the indicator along the lines I outlined. Turned out to be best to do it a bit differently.

It's all in one indicator, there was no point in making seperate indicators for different components that would generate the price levels. Now I've got a new Plot() overriding the original. Took a bit of head-scratching and there were a few NinjaTrader built-in problems. A lot of it is unsupported which means NinjaTrader reserve the right to change NinjaScript in ways that will foobar the indie, but that's the only way it can be done.

Having some major problems debugging the session times for the session highs/lows S/R lines I want to include. Print() is not the quickest way to debug. Otherwise I thought I'd have another version to post here. Will have to wait til tomorrow.

You can discover what your enemy fears most by observing the means he uses to frighten you.
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #13 (permalink)
 
COTtrader's Avatar
 COTtrader 
JACKSON, MICHIGAN
Legendary Market Wizard
 
Experience: Intermediate
Platform: TS and Trading View
Broker: TS
Trading: ES Awesome!
Posts: 955 since Jul 2009
Thanks Given: 406
Thanks Received: 648



Adamus View Post
Ken,

do you use this Swing Indicator? Just looking at it, I wonder whether it shows some sort indicator of chop or the extent of choppiness, like how many times the swing count is broken?

Adamus,

Apology for the late reply. I use the Price Action Swing Pro (PAS). I am only using the Volume information from it.

Actually, I will need to have it recoded to align with the subpanel indicator. It doesn't recognize the double tops/bottoms my indicator points out. A dbl top or dbl bottom cannot be taken unless price has moved at least within a 4 tick span.

I've also discovered a divergence trade setup using the same subpanel indie. I call it "Kbar"

I believe these two setups can be accomplished from within the PAS or swing indicator.

I included a couple of picks to show the accuracy of this Algo on the ES. It would be a nice algo to run were it properly set up.

Ken "COTtrader"

Attached Thumbnails
Click image for larger version

Name:	Kbars.png
Views:	391
Size:	47.6 KB
ID:	104720   Click image for larger version

Name:	DoubleBtmTps.png
Views:	379
Size:	55.7 KB
ID:	104721  
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #14 (permalink)
 
Adamus's Avatar
 Adamus 
London, UK
 
Experience: Beginner
Platform: NinjaTrader, home-grown Java
Broker: IB/IQFeed
Trading: EUR/USD
Posts: 1,085 since Dec 2010
Thanks Given: 471
Thanks Received: 789

Thanks @COTtrader, thanks for the input. That's something I'll have to look at later. At this point I'm haven't got as far as something as relatively complex as double bottoms. The swing points I coded the indie to recognise are all single.

I'm putting up version 3.

All the code is in the one indicator. It's getting big, unavoidable though. I've now made it load up user-defined amounts of different time-frame bars to scan for swing points. There's 15 mins, 30mins, 60mins, 120mins, 240mins, daily and weekly to choose from.

Plus I've added the ability to define the high and low for two user-defined "sub-sessions", putting in the start and finish times.

Plus it marks round numbers.

The worst part is the fiddley stuff, and there's much more of the fiddley stuff to be done.

The first thing that is noticeable is that the labels just overlap when space is tight and it becomes illegible.

Later one I'll re-write the list of functionality still required.


You can discover what your enemy fears most by observing the means he uses to frighten you.
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #15 (permalink)
 
Adamus's Avatar
 Adamus 
London, UK
 
Experience: Beginner
Platform: NinjaTrader, home-grown Java
Broker: IB/IQFeed
Trading: EUR/USD
Posts: 1,085 since Dec 2010
Thanks Given: 471
Thanks Received: 789

Hi @Abde,

it turns out my original thoughts on keeping indicators seperate was nice but just not possible.

It should be really easy to add user-defined S/R zones, using parameters for price range, date/time range and desired color. I assume it's only 1 you want - what do you use it for?

You can discover what your enemy fears most by observing the means he uses to frighten you.
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #16 (permalink)
 
Adamus's Avatar
 Adamus 
London, UK
 
Experience: Beginner
Platform: NinjaTrader, home-grown Java
Broker: IB/IQFeed
Trading: EUR/USD
Posts: 1,085 since Dec 2010
Thanks Given: 471
Thanks Received: 789

List of things to do, in rough order of importance:
  1. research whether there is any way to have the labels show only on mouse-over of a small part of the line
  2. parameterize how many bars either side of the swing high / low are needed to make it a swing high / low. It's currently fixed at 2, but 3 or 4, or 3 before, 2 after might be better (this might be an effective way to cut down the number of lines)
  3. automatically merge S/R lines that are close together, with a parameter that tells the indie what "close together" actually is in terms of ticks
  4. add a rule to kill off S/R lines when they invalidate themselves - I'll have to go over the charts to work out what best represents a killer event
  5. add the ability to downgrade S/R lines that come from uninteresting hours, e.g. the Asian session during the EUR/USD forex day, by using 3 bars either side for the definition of swing points (might not be so useful, but interesting to try out)
  6. hide S lines below the market on the chart and hide R above it
  7. instead of just a line for a level, create a zone based on how the swing point was formed, e.g. just the tails of the candles, or the hi and low of the small candle in a morning star candlestick pattern etc.
  8. create a dataseries property with all the levels in, which a strategy can call


Taking care of the labels is the worst on the list because I have no idea how to do it, but there's got to be a way. Doubt I'll get any help from NinjaTrader Support on it. I'm hoping they'll have an example they can give me rather than just a straight "sorry that is unsupported".

You can discover what your enemy fears most by observing the means he uses to frighten you.
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #17 (permalink)
 Abde 
Stuttgart / Germany
 
Experience: Intermediate
Platform: FlatTrader
Broker: GFT and Interactive Brokers
Trading: ES, DAX
Frequency: Every few days
Duration: Days
Posts: 533 since Aug 2010
Thanks Given: 2,141
Thanks Received: 729


Adamus View Post
Hi @Abde,

it turns out my original thoughts on keeping indicators seperate was nice but just not possible.

It should be really easy to add user-defined S/R zones, using parameters for price range, date/time range and desired color. I assume it's only 1 you want - what do you use it for?

Hi @Adamus,

no I didnīt mean only 1 but rather generally for all lines, though after rethinking that, itīs not reasonable. It would only make sense to apply it for the weekly S/R levels and perhaps for the daily. Then the opacity of the desired color and the tick offset from the mean should be user definable.

The thought behind the zones is to create buy and sell areas because the price often exceed the S/R levels only to come back and go the other way (false breakouts).
It is posiible to add also monthly S/R levels?

Reply With Quote
  #18 (permalink)
 
Adamus's Avatar
 Adamus 
London, UK
 
Experience: Beginner
Platform: NinjaTrader, home-grown Java
Broker: IB/IQFeed
Trading: EUR/USD
Posts: 1,085 since Dec 2010
Thanks Given: 471
Thanks Received: 789


Abde View Post
Hi @Adamus,

no I didnīt mean only 1 but rather generally for all lines, though after rethinking that, itīs not reasonable. It would only make sense to apply it for the weekly S/R levels and perhaps for the daily. Then the opacity of the desired color and the tick offset from the mean should be user definable.

The thought behind the zones is to create buy and sell areas because the price often exceed the S/R levels only to come back and go the other way (false breakouts).
It is posiible to add also monthly S/R levels?

Adding monthly S/R levels shouldn't take more than 15 mins to add. I should be able to do that at some point soon even though the labels and the merging the close-together zones is a pretty big priority right now - I find I'm only using it for session highs and lows at the moment because of too many lines from the 60min time-frame alone.

I didn't understand the rest of what you said - apart from the bit about break-outs. What's the tick offset from the mean in terms of S/R levels?

You can discover what your enemy fears most by observing the means he uses to frighten you.
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #19 (permalink)
 Abde 
Stuttgart / Germany
 
Experience: Intermediate
Platform: FlatTrader
Broker: GFT and Interactive Brokers
Trading: ES, DAX
Frequency: Every few days
Duration: Days
Posts: 533 since Aug 2010
Thanks Given: 2,141
Thanks Received: 729


Adamus View Post
Adding monthly S/R levels shouldn't take more than 15 mins to add. I should be able to do that at some point soon even though the labels and the merging the close-together zones is a pretty big priority right now - I find I'm only using it for session highs and lows at the moment because of too many lines from the 60min time-frame alone.

I didn't understand the rest of what you said - apart from the bit about break-outs. What's the tick offset from the mean in terms of S/R levels?

@Adamus,

I am sorry that I explained it a bit complicated. Assuming that the S/R level is 100 and 5 tick offset is choosed, the zone display would be from 95 to 105. Five tick above and five tick below the S/R number. I hope itīs understandable now.

Reply With Quote
Thanked by:
  #20 (permalink)
 fcg237 
SP/Brazil
 
Experience: Advanced
Platform: Ninja Trader
Trading: Futures
Posts: 5 since Jan 2013
Thanks Given: 0
Thanks Received: 3


Hi @Adamus,

It is possible to only plot the lines of support and resistance for a range chart without looking to a 15 minute candle chart? when i tried it plotted a lot of lines and my ninja didnt respond for 5 minutes. I just want it to plot the last 3 days Sup/Res lines.

Thanks!

fcg237

Reply With Quote




Last Updated on May 3, 2015


© 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