OPEN-SOURCE SCRIPT

It's All Mids

已更新
It's All Mids extends mid-lines of a candle forward until the price revisits (covers) the midpoint. A higher timeframe can be used for the mid candles than the chart (but not the reverse). There is no data to support this is a meaningful concept.

While this script is intended to be functional, correct and useful it is important that you understand that not only is this the first script I've written but also that "I am an idiot."(tm) Using a stranger's indicator is questionable, but using a self-proclaimed idiot's indicator to trade real money is unquestionably stupid. Don't be like me. Be smart. You are responsible for what you do with this script. The source is unlocked, so feel free to copy and modify it.

Terms:
- A "mid" is the (high+low)/2 price of a previous candle that has not been auctioned since the candle close. All candles will initially have a mid unless they close on exactly their midpoint.
- A "covered" mid is a mid for which the midpoint has been auctioned since the candle closed. There is an option to display a number of these so that when a mid is hit the line doesn't just disappear from the chart and you forget what you were doing.
- A "low priority" mid is the mid of a candle which was auctioned in the previous candle(s) (chart's timeframe, not the mid's timeframe)-- chopchopchop. I have no data to show that this matters, or really, that anything matters at all.

My use: I chart a 60m mid on ES on a 5 or 15 minute chart. I am lying. I use it for something else but if I tell you that then I give away my incredible alpha that has made me so rich I can spend my time crying in corner about all the money I've lost.
版本注释
V1.1 update
Lines start at the mid-time of the midPoint
Details: It's all mids after all. You'd notice this if your chart timeframe is lower than the timeframe of the mids.
Now there are labels.
Details: Maybe you like labels. I like labels sometimes, but not before coffee. Lines to not like labels, even after 3 cups of cold brewed organic free trade coffee sipped at a cat cafe in a sunbeam with one of those derpy tongue gray cats purring on the line's lap. What was I talking about? Right, labels. You'd think, and lemme tell you you'd be dead wrong, that you could just trivially add a yaxis label to any line. Nope. Not happening. Make it a plot you say? Well those can't be looped through or modified, which was how I drew the lines in the first place. So what you get are little tiny numbers next to the line, because knowing the exact price isn't going to help me loose any less money and you are using a free script from an idiot so your judgment doesn't require that level of precision.

------ Original release documentation -------------------

It's All Mids extends mid-lines of a candle forward until the price revisits (covers) the midpoint. A higher timeframe can be used for the mid candles than the chart (but not the reverse). There is no data to support this is a meaningful concept.

While this script is intended to be functional, correct and useful it is important that you understand that not only is this the first script I've written but also that "I am an idiot."(tm) Using a stranger's indicator is questionable, but using a self-proclaimed idiot's indicator to trade real money is unquestionably stupid. Don't be like me. Be smart. You are responsible for what you do with this script. The source is unlocked, so feel free to copy and modify it.

Terms:
- A "mid" is the (high+low)/2 price of a previous candle that has not been auctioned since the candle close. All candles will initially have a mid unless they close on exactly their midpoint.
- A "covered" mid is a mid for which the midpoint has been auctioned since the candle closed. There is an option to display a number of these so that when a mid is hit the line doesn't just disappear from the chart and you forget what you were doing.
- A "low priority" mid is the mid of a candle which was auctioned in the previous candle(s) (chart's timeframe, not the mid's timeframe)-- chopchopchop. I have no data to show that this matters, or really, that anything matters at all.

My use: I chart a 60m mid on ES on a 5 or 15 minute chart. I am lying. I use it for something else but if I tell you that then I give away my incredible alpha that has made me so rich I can spend my time crying in corner about all the money I've lost.
版本注释
Updates:
Bug fixes:
  • fixed "indicate low priority mids" to control the color rather then entire display of colorLowpriMids
  • change the timeframe used for low priority mids from the chart tf to the mid tf
  • rounded mid to cents (up on green down on red)

Features:
  • added a fudge factor for mid-covering for those tickers that don't respect the mids to the cent.


If you actually are using this, let me know if there are any features you'd like. Right now I'm thinking about adding a nearest mid highlight color and to update the mid prices to match the tick size of the security (rather than rounding to the penny or not rounding at all).
Candlestick analysisHL2multitimeframePivot points and levels

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明