maqpie

Dav-o meter (public)

I decided to make this formerly invite only script public (you can find the invite only version here
If you are part of the invite only you don't need to change scripts. I will push improvements first on the invite only script but in time it will come to this version as well.

I would love to know your ideas and thoughts on how this indicator can be improved, so feel free to give any feedback.
Remember to give it a thumbs up if you like it.

Phát hành các Ghi chú:
  • Fixed a bug in RSI (thank you Benjamin!)
  • Added a list of future improvements
Phát hành các Ghi chú: Migrated to Pine Version 3 and added source as an input.
Phát hành các Ghi chú: Pseudo code
Example

General info and acknowledgements
Author: maqpie
Date of publishing: 20th of july 2017

This script is based upon Davinci's davo meter and his original script, which searches for W's and M's in price, OBV, and Willy.
Although the original script is elegant, a W or M has to occur within 5 bars.
This script has removed those limitations.

It took me several different approaches to find a good solution. For the most part because of the lack of any real debugging tool in Pine script.
Let me know what you think, because I feel like I need tone down the number of options so it is easier to use.
If you have any questions, or things you would like to see different please contact me at TRI.

Have fun playing and goofing around with it!


How it works
Now, trading is more of an art form than a science and this indicator is no exception.
When talking about M's and W's, it begs the question: what exactly counts as a W or M?
My personal experience is that for a W to count as such, it has to adhere to the following rules:

1. A 'W' has 5 points, A, B, C, D and E E
2. Point A can be any point C /
3. Point B should be lower than A A / \ /
4. Point C should be higher than B \ / D
5. Point D should be lower than C, but higher than B B
6. Point E should be higher than C

1. A 'M' has 5 points, A, B, C, D and E B
2. Point A can be any point / \ D
3. Point B should be higher than A A \ / \
4. Point C should be lower than B C \
5. Point D should be higher than C, but lower than B E
6. Point E should be lower than C


Script input parameters
You can use the following indicators to search for W's or M's:
- price (close)
- OBV
- Willy
- RSI
- MFI

For each of these indicators you set the following options:
- Use: whether you want to use it
- The maximum width: over how many bars a W / M is allowed to form
- The maximum offset: how many bars back a W / M is allowed to form
- Strict: when not set, rule 5 (see 'How it works') changes: point D no longer has to be above B (for W), and no longer has to be below B (for M)
- Length: length of the indicator, for example a 14 bar RSI

Other options:
- Period: you can limit the period for backtesting. Useful to identify under what market conditions the script works best.
Phát hành các Ghi chú: v3.4
- added MFI
- fixed the offset; the offset wasn't working as intended
- tidied up code
- set the default period for "limit period" to 1/7/2017 - 1/1/2019

v3.5
- added DMI (only DI+ and DI-; ADX is not used)
Phát hành các Ghi chú: Released 3.5 to quickly; fixed a bug with the DMI. All good now.
Phát hành các Ghi chú: Provided better chart with all the possible indicators on it.
Phát hành các Ghi chú: v3.5.1
- Fixed a bug which prevented alerts from firing. Unfortunately, using concatenated strings in alerts prevents them from being fired even though they do show up on the chart.

My thanks go to pequet and grimmolf for finding and reporting this nuisance to me.
Phát hành các Ghi chú: v3.5.2
- Fixed the alert bug which I thought had been fixed in 3.5.1, please use the settings as displayed here: https://imgur.com/a/1rSty7o (I've tested these extensively)
- Changed the clunky 'limit period' option from two dates to a simple past n years
- Renamed 'davo short' and 'davo long' plot text into simply 'davo'
Phát hành các Ghi chú: v3.5.2
  • added entry, stop loss and target (use style options to hide them as desired)
Phát hành các Ghi chú:
  • Added dynamic RLZ
  • Fixed alert condition
Gỡ bỏ khỏi Script Ưa thích Thêm vào Script Ưa thích
!!
Phản hồi
Does it enter at the open price of the candle or I have to wait for candle which got the signal to close and then enter?
Phản hồi
maqpie alvashivaprasad7
@alvashivaprasad7, you don't have to wait to enter. As soon as the signal pops up you can enter.
Phản hồi
Very stoked to try it! Great work Sanne!
Phản hồi
maqpie xansibar
@xansibar, thank you! I hope it will fulfill your expectations.
Phản hồi
Hi guys, i'm new here
Knowing the basis of the tecnical analysis but super newbie about this platform
How i can Save this script in my graphic chart?
Now i'm try to testing some strategies on TV, there are some possibilities to trade with options here?
Thanks guys
Phản hồi
maqpie Hanuman108
@Hanuman108, when on a chart there is a button 'indicators' and then search for dav-o, add it and ... you're done. It's pretty easy when you know how. When you just get started TV is rather overwhelming. If you like this script, don't forget to add it to your favorites - and if you are so inclined - to give it a thumbs up. Welcome to TradingView and the trading community.
Phản hồi
wow Sanne, great work - never seen pinescript pushed this hard!
Phản hồi
maqpie tsmmob
@tsmmob, I don't know why, but I've only now seen your comment. Anyway, thank you sir!
Phản hồi
wow, now that's some coding. wtg Sanne, hope everyone can benefit
+2 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 đồ Trung tâm 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 Trung tâm 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