OPEN-SOURCE SCRIPT
Cập nhật Top Bottom Finder Public version- Jayy

This script plots a 6 algos from the Coles/Hawkins "Midas Technical Analysis" book:
Top finder / Bottom Finder (Levine Algo by Bob English)* - onlinelibrary.wiley.com/doi/10.1002/9781118531877.app3/pdf
MIDAS VWAP Gen-1) -
MIDAS VWAP average and deltas
VWAP (Gen-1) using a date or a bar n number can be initiated at bar 0 - useful for a new IPO
Standard Deviation of MIDAS VWAP
MIDAS Displacement Channels (Coles) - edmond.mires.co/GES816/03-
An%20Anchored%20VWAP%20Channel%20For%20Congested%20Markets.pdf
* for better results with topfinder and bottomfinder use the companion TB-F Matcher script.
See wiki for a synopsis: en.wikipedia.org/wiki/MIDAS_Technical_Analysis
Relevant info can be found in: Midas Technical Analysis: A VWAP Approach to Trading and Investing in Today’s Markets by
Andrew Coles, David G. Hawkins Copyright © 2011 by Andrew Coles and David G. Hawkins.
Appendix C: TradeStation Code for the MIDAS Topfinder/Bottomfinder Curves ported to Tradingview
This script requires a working understanding of "Midas Technical Analysis" Google "Midas Technical Analysis" and a variety of information will appear.
To find fit the curve as described in the Midas book a companion script is required that will after a few manual iterative inputs guide you to the appropriate D value for the for input into this program ( see the TB-F Matcher script). You might also try the Midas average and Deltas as described in the book. I have added the 2nd, 3rd and 4th multiples of Delta.
The advantage is that there is no curve fitting. You still need to select a starting point for Midas or the topfinder bottomfinder (TB_F)
or the VWAP.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
See the notes in the script below
Cheers Jayy
Top finder / Bottom Finder (Levine Algo by Bob English)* - onlinelibrary.wiley.com/doi/10.1002/9781118531877.app3/pdf
MIDAS VWAP Gen-1) -
MIDAS VWAP average and deltas
VWAP (Gen-1) using a date or a bar n number can be initiated at bar 0 - useful for a new IPO
Standard Deviation of MIDAS VWAP
MIDAS Displacement Channels (Coles) - edmond.mires.co/GES816/03-
An%20Anchored%20VWAP%20Channel%20For%20Congested%20Markets.pdf
* for better results with topfinder and bottomfinder use the companion TB-F Matcher script.
See wiki for a synopsis: en.wikipedia.org/wiki/MIDAS_Technical_Analysis
Relevant info can be found in: Midas Technical Analysis: A VWAP Approach to Trading and Investing in Today’s Markets by
Andrew Coles, David G. Hawkins Copyright © 2011 by Andrew Coles and David G. Hawkins.
Appendix C: TradeStation Code for the MIDAS Topfinder/Bottomfinder Curves ported to Tradingview
This script requires a working understanding of "Midas Technical Analysis" Google "Midas Technical Analysis" and a variety of information will appear.
To find fit the curve as described in the Midas book a companion script is required that will after a few manual iterative inputs guide you to the appropriate D value for the for input into this program ( see the TB-F Matcher script). You might also try the Midas average and Deltas as described in the book. I have added the 2nd, 3rd and 4th multiples of Delta.
The advantage is that there is no curve fitting. You still need to select a starting point for Midas or the topfinder bottomfinder (TB_F)
or the VWAP.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
See the notes in the script below
Cheers Jayy
Phát hành các Ghi chú
This is a minor update to the original script. I found two script/code typos: Line 156 as described by line 112, ie the anchor point for the VWAP in "Part 3" of the dialogue box. Also, line 215 which calculates the lower displacement curve of VWAP. Jayy
Phát hành các Ghi chú
Forgot to plot a few curves after the update. Here is the Anchored VWAP from the top, middle and bottom of a gap bar and the Top-Bottom finder plotted from the breakaway point Phát hành các Ghi chú
.Phát hành các Ghi chú
.Phát hành các Ghi chú
sal157011 has found a few more errors in the script: On lines 312, 313, 314, 315 almost at the end of the lines appears four 8's which should be 68, 78, 88 and 98. This is now fixed.Phát hành các Ghi chú
This script stopped working today as a result of a minor update to Pine script. I need to renovate the script to fix other issues as well. ie better use of dates and a MIDAS channels fix. I will do a quick fix for the max bars back issue. In the meantime, this will get things going. I also changed line 78 from plot(n+1,style=area,color=blue,transp=100) to plot(n ,style=area,color=blue,transp=100). This will move your pivot in the TB-F one line back. jayy
Phát hành các Ghi chú
I have not worked on the Topfinder Bottomfinder script and the matcher script in a while. They both need work. Most of the trouble is the non-intuitive interface.I am not sure when I will find the time. This is a bit of improvement to Displacement channels and VWAP. I have not disabled these functions in the Topfinder Bottomfinder script yet but I should. In any case, the script interaction needs to be improved.
Use this script for displacement channels:

Phát hành các Ghi chú
Paul Levine devised the Top Bottom Finder (also known as the TopFinder/BottomFinder algorithm) in 1995.This script was created for David G Hawkins co-author of MIDAS Technical Analysis
Relevant info can be found in: Midas Technical Analysis: A VWAP Approach to Trading and Investing in Today’s Markets by Andrew Coles, David G. Hawkins Copyright © 2011 by Andrew Coles and David G. Hawkins.
Appendix C: TradeStation Code for the MIDAS Topfinder/Bottomfinder Curves has ported to Tradingview
This script requires a working understanding of "Midas Technical Analysis" Google "Midas Technical Analysis" and a variety of information will appear.
To fit the curve as described in the Midas book a companion matcher script or you can match the pivot point by eye after a few manual iterative inputs guide you to the appropriate D value for the for input into this program .
You will need to select a starting point for Midas or the Top Bottom Finder (TB_F)
MIDAS vwap.
This version will only show one TB_F curve
Select a bar/candle as the starting point for the Top Bottom finder or Midas. Decide where you want the TB_F and or MIDAS to start ie bottom top or somewhere in between.
Usually, for a down trend select the top of the starting bar and for an upward trend use the bottom of the bar/candle.
Some might prefer the mid point of the bar/candle.
The quick way to pick a start point is simply to put your cursor over the starting bar and look at the number that shows to the right of the script title which is shown in the upper left.
In this case, the starting point was 1704 at the time this script was published. This will be the starting point for both TB_F and MIDAS.
For the TB_F you must also pick a pivot bar/candle as described in the book so I created a " TB-F Matcher" script to help align the TD_F curve with the desired pivot point.
The rationale for the matching the pivot bar is explained in the book. Don't forget to google "Midas Technical Analysis".
You must also select a "D" volume as grist for the topfinder/bottomfinder calculations. I have used the convention of Coles and Hawkins book putting in an initial value of 50 bars of volume. The script will use the total volume (cumulative) for the number of bars (fractions are fine)
prior to the initialization point. This will work for most scenarios.
However, a D volume (D vol) can be inserted directly into the script, once a none zero number is added the script will default to D vol. Enter the full number 810 milion is 810000000.
// MIDAS VWAP Gen-1)
Can be launched from the same point as the topfinder bottomfinder or a bar of your choosing.
Can be launched from the bar top, middle (hl2) or bottom or all three simultaneously.
Cheers Jayy
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Jayy
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Jayy
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
