ZenAndTheArtOfTrading

Dynamic Structure Indicator

This is a dynamic structure indicator designed to map potential support and resistance zones (in all markets). It does this by looking back x amount of candles to identify major swing highs and lows on the specified reference timeframe, and then it draws a zone between the highest/lowest wick and the highest/lowest candle close across the chart until a new zone is created.

The settings are important because it gathers data from a separate reference timeframe, so sometimes it will map zones that aren’t really appropriate for lower timeframes. On lower timeframes (1Hr and under) I’d recommend setting the reference timeframe to your actual trading timeframe and increasing the lookback period to fine-tune the zone mapping. The script is set for 4 Hour forex charts by default.

Please note: the max zone option is disabled by default because it is different for every instrument, but this is a useful feature that I recommend using. Sometimes the indicator picks up huge gaps that aren’t really considered support or resistance zones. If this happens to you, use the zone size settings to invalidate huge (or tiny) zones. The zone size is in pips.

To be honest I didn’t get this indicator to be quite as accurate as I envisioned and it’s still a work in progress as I learn pine script, but this is the best I’ve been able to get it to function and with the right settings it works fairly well so I figured I might as well release this first version. Maybe someone with better skills than me can help refine it to more accurately identify major fractals and levels - if so, please get in touch! All traders should be able to identify their own major levels by eye anyway, but this script is intended to be a building block for future signal indicators I wish to develop.

Last of all - please don’t use this indicator to trade blindly! Often price will blast right through these zones and the zones aren’t always accurate. Remember that structure levels only work if they’re obvious to other traders, and always wait for confirmation signals that meet your trade plan rules before entering trades – especially reversals or counter-trend trades.

If you have any questions or tips to improve the script, feel free to leave a comment or private message me.

Enjoy, and good luck out there :)

- Matt.
Phát hành các Ghi chú: - Added an offset feature that maps the zones a slightly further distance from their point of origin
- Fixed the zone coloring change when zones are broken and closed above/below
Phát hành các Ghi chú: v1.2:

- Added an offset feature that maps the zones a slightly further distance from their point of origin
- Fixed the zone coloring change when zones are broken and closed above/below
Phát hành các Ghi chú: Fixed pip zone size input so that the indicator works for all instruments by default.
Phát hành các Ghi chú: Minor improvements
Gỡ bỏ khỏi Script Ưa thích Thêm vào Script Ưa thích
Follow @TradeWisdom on Twitter for Daily inspiration from the best trading wizards, psychologists and philosophers.

Go to http://www.zenandtheartoftrading.com for articles on forex trading, trading psychology, trading resources, PineScript lessons and more!
Thank you for this!
Phản hồi
Thanks for this script! I'm also looking forward to the one that uses ATR, as I'm also using a lot of renko charts. Keep up the good work! :-)
Phản hồi
hey first of all I like this indicator, so thank you!! so I'm just curious you say this is set for a 4 hr default. the lookback is set at 8 and the time frame is 1. how is that 4hrs?? I'm assuming the the 1 is for a single minute correct?
so wouldn't that be looking back 8 minutes? just curious as I'm trying to fine tune this indicator!!! thanks man
Phản hồi
@Longevity7, Hey man! Thanks for the interest :) the script uses the Open, High, Low & Close data of the 4HR timeframe by default, and it looks back 8 x 4HR candles for swing highs/lows by default. That's what I mean by it's set for the 4HR timeframe by default, because it is using the data of the 4HR timeframe to define the S&R zone sizes (using 32 hours worth of 4HR price action).

You can change the reference timeframe and also extend or shorten the candle lookback period which will give you different approximate S&R extremes. The shorter the lookback period, the more 'tight' the zones will be which may be useful if you're a day-trader. The longer the lookback-period, the more you're going to start getting Daily and Weekly S&R zones. I'm a swing trader myself so the majority of my indicators are configured to work best on 4HR timeframes by default :)

I plan to release an enhanced version of this script soon which uses the ATR to define zones rather than pips so that it works better on all instruments. This was one of the first indicator scripts I wrote, so there are a lot of improvements that could be made. Feel free to make any suggestions or improvements if you think of any!

Cheers :)
Phản hồi
Longevity7 ZenAndTheArtOfTrading
@ZenAndTheArtOfTrading, Hey just to add, and thank you by the way for that info. did you know that this indicator does not work with the yen pairs? is it because of its initial triple digit price and the indicator is coded for the other instruments?
Phản hồi
@Longevity7, Yes, unfortunately you need to change the minimum/maximum zone size to account for the difference in Yen pairs decimal points in price every time you open a Yen chart or go back to a dollar chart. I haven't had the time to revisit this script for a while now but I still plan to try to fix that soon if I can :) I want to try to convert the script to use ATR for minimum/maximum S&R zone sizes instead of pips so that the script works on all pairs without you having to tweak anything.
Phản hồi
You should validate your levels using my momentum candle indicators. It seems a level with a momentum candle are stronger levels.
Phản hồi
@BarsStallone, Thanks for the tip Justin, I'll look into it!
Phản hồi
nice work
Phản hồi
Thanks Matt!!!! It is Great!!
Phản hồi
Trang chủ Bộ lọc cổ phiếu Bộ lọc Forex Bộ lọc Tiền điện tử Lịch kinh tế Cách thức hoạt động Tính năng Biểu đồ Giá Quy tắc Áp dụng Người điều hành Giải pháp cho Website & Nhà môi giới Widget Giải pháp biểu đồ Nhận trợ giúp Yêu cầu tính năng Blog & Tin tức Câu hỏi thường gặp Wiki Twitter
Hồ sơ Tùy chỉnh Hồ sơ Tài khoản và Thanh toán Đồng TradingView Ticket Hỗ trợ của tôi Nhận trợ giúp Các ý tưởng đã đăng Người theo dõi Đang theo dõi Tin nhắn riêng Trò chuyện Đăng xuất