TradingView
jayy
Aug 19, 2017 10:32 PM

Top Bottom Finder Public version- Jayy 

Apple Inc.NASDAQ

描述

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

版本注释

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

版本注释

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

版本注释


Fixed a script issue pointed out in the comments by sal157011.

The pivot matcher script is here: tradingview.com/script/XH5AbqhG-Topfinder-Bottomfinder-pivot-matcher-Midas-jayy/

版本注释

.

版本注释

.

版本注释

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.

版本注释

Here is the screen pic with notes:

版本注释

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

版本注释

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: tradingview.com/script/91dvd809-MIDAS-displacement-channels-public-version-jayy/
评论
jayy
sahajchhabra
Hii jayy brother its request to correct this script and and you have done sich a wonderful work .
Fix this error and top finder and bottom finder script
jruggieroa
Hi! Jayy, i like a lot all that you have done, i use midas as part of my main method and your tools are great, you are great sharing all this. As a little contribution I foud today that some changes in pine scritp are causing an error showing the next message "Pine cannot determine the referencing length of a series... " to fix it it is needed to add a condition to the study: "max_bars_back=1000" in order to help pine script to determine the length of the series (1000 because I think that is too much for a N bars back value).

Hope this help and have a nice day.
jayy
@jruggieroa, Pinescript is always evolving. Today this script stopped functioning. Thank you for your suggestion for correcting the issue. Please note that I also changed line 78.
I have created a separated renovated MIDAS channel script that functions correctly as well as a more robust method for the selection of dates for the Anchored VWAP. I might publish that script separately. jayy
feicunzhb
Dear Jayy, This indicator is very useful for midas, but there have something wrong when I use it. l want for your help, tell me what wrong. can you give a right values for this day for test? l rellay want use this indicator. Tks!
jayy
@feicunzhb, This might take a little back and forth so I will message you. The first things to try are 1- to set the chart to Auto (Fits data to screen) and/or 2- Scale price chart only.
Hover the mouse pointer at the right side of the chart on the price scale, right-click on the price scale (ordinate) you will see a dialogue box with options both options I suggest you try will be on that list. Jayy
feicunzhb
@jayy, Oh, my friend! it's in normal condition now! tks for your hel. very beautiful indicator. your are great man. tks!
jayy
@feicunzhb, You are welcome Try this using the EURUSD 30 min chart ie the same chart you have used. In box one "Starting Bar number" set to 16487. In box three "Initial D" set to 100 jayy
feicunzhb
@jayy, Very nice indicator, Thank you very much!
jayy
@feicunzhb, here is Initial D set at 125 jayy
更多