Table SessionIt's a part of a script taken from the lux_Algo indicator and optimized with the BTCUSDT symbol to display the real status of sessions since the crypto market is always open.
Key Features:
Customizable Sessions: Choose from major global financial centers, including New York, London, Tokyo, and Sydney. Customize the parameters for each session according to your preferences.
Intuitive Dashboard: The interactive dashboard displays real-time active and inactive sessions, providing you with an instant overview of the market status.
Automatic Timezone Support: Avoid timezone confusion with automatic exchange timezone support.
Customizable Aesthetics: Tailor the appearance of the table to your style with customization options, whether it's vibrant colors or text sizes.
Easy to Use: No technical expertise required. Simply enable the sessions you want to display and let the script handle the rest.
Why Choose "Table Session":
Time-Saving: Eliminate the time-consuming manual search for trading sessions. Our script does it for you, freeing up your attention for more critical decisions.
Unmatched Decision-Making: Instantly identify prime trading opportunities by understanding which sessions are active and when.
Total Flexibility: Customize the script to your trading style and preferred markets for a tailored trading experience.
Tables
TableLibrary "Table"
This library provides an easy way to convert arrays and matrixes of data into tables. There are a few different implementations of each function so you can get more or less control over the appearance of the tables. The basic rule of thumb is that all matrix rows must have the same number of columns, and if you are providing multiple arrays/matrixes to specify additional colors (background/text), they must have the same number of rows/columns as the data array. Finally, you do have the option of spanning cells across rows or columns with some special syntax in the data cell. Look at the examples to see how the arrays and matrixes need to be built before they can be used by the functions.
floatArrayToCellArray(floatArray)
Helper function that converts a float array to a Cell array so it can be rendered with the fromArray function
Parameters:
floatArray (float ) : (array) the float array to convert to a Cell array.
Returns: array The Cell array to return.
stringArrayToCellArray(stringArray)
Helper function that converts a string array to a Cell array so it can be rendered with the fromArray function
Parameters:
stringArray (string ) : (array) the array to convert to a Cell array.
Returns: array The Cell array to return.
floatMatrixToCellMatrix(floatMatrix)
Helper function that converts a float matrix to a Cell matrix so it can be rendered with the fromMatrix function
Parameters:
floatMatrix (matrix) : (matrix) the float matrix to convert to a string matrix.
Returns: matrix The Cell matrix to render.
stringMatrixToCellMatrix(stringMatrix)
Helper function that converts a string matrix to a Cell matrix so it can be rendered with the fromMatrix function
Parameters:
stringMatrix (matrix) : (matrix) the string matrix to convert to a Cell matrix.
Returns: matrix The Cell matrix to return.
fromMatrix(CellMatrix, position, verticalOffset, transposeTable, textSize, borderWidth, tableNumRows, blankCellText)
Takes a CellMatrix and renders it as a table.
Parameters:
CellMatrix (matrix) : (matrix) The Cells to be rendered in a table
position (string) : (string) Optional. The position of the table. Defaults to position.top_right
verticalOffset (int) : (int) Optional. The vertical offset of the table from the top or bottom of the chart. Defaults to 0.
transposeTable (bool) : (bool) Optional. Will transpose all of the data in the matrices before rendering. Defaults to false.
textSize (string) : (string) Optional. The size of text to render in the table. Defaults to size.small.
borderWidth (int) : (int) Optional. The width of the border between table cells. Defaults to 2.
tableNumRows (int) : (int) Optional. The number of rows in the table. Not required, defaults to the number of rows in the provided matrix. If your matrix will have a variable number of rows, you must provide the max number of rows or the function will error when it attempts to set a cell value on a row that the table hadn't accounted for when it was defined.
blankCellText (string) : (string) Optional. Text to use cells when adding blank rows for vertical offsetting.
fromMatrix(dataMatrix, position, verticalOffset, transposeTable, textSize, borderWidth, tableNumRows, blankCellText)
Renders a float matrix as a table.
Parameters:
dataMatrix (matrix) : (matrix_float) The data to be rendered in a table
position (string) : (string) Optional. The position of the table. Defaults to position.top_right
verticalOffset (int) : (int) Optional. The vertical offset of the table from the top or bottom of the chart. Defaults to 0.
transposeTable (bool) : (bool) Optional. Will transpose all of the data in the matrices before rendering. Defaults to false.
textSize (string) : (string) Optional. The size of text to render in the table. Defaults to size.small.
borderWidth (int) : (int) Optional. The width of the border between table cells. Defaults to 2.
tableNumRows (int) : (int) Optional. The number of rows in the table. Not required, defaults to the number of rows in the provided matrix. If your matrix will have a variable number of rows, you must provide the max number of rows or the function will error when it attempts to set a cell value on a row that the table hadn't accounted for when it was defined.
blankCellText (string) : (string) Optional. Text to use cells when adding blank rows for vertical offsetting.
fromMatrix(dataMatrix, position, verticalOffset, transposeTable, textSize, borderWidth, tableNumRows, blankCellText)
Renders a string matrix as a table.
Parameters:
dataMatrix (matrix) : (matrix_string) The data to be rendered in a table
position (string) : (string) Optional. The position of the table. Defaults to position.top_right
verticalOffset (int) : (int) Optional. The vertical offset of the table from the top or bottom of the chart. Defaults to 0.
transposeTable (bool) : (bool) Optional. Will transpose all of the data in the matrices before rendering. Defaults to false.
textSize (string) : (string) Optional. The size of text to render in the table. Defaults to size.small.
borderWidth (int) : (int) Optional. The width of the border between table cells. Defaults to 2.
tableNumRows (int) : (int) Optional. The number of rows in the table. Not required, defaults to the number of rows in the provided matrix. If your matrix will have a variable number of rows, you must provide the max number of rows or the function will error when it attempts to set a cell value on a row that the table hadn't accounted for when it was defined.
blankCellText (string) : (string) Optional. Text to use cells when adding blank rows for vertical offsetting.
fromArray(dataArray, position, verticalOffset, transposeTable, textSize, borderWidth, blankCellText)
Renders a Cell array as a table.
Parameters:
dataArray (Cell ) : (array) The data to be rendered in a table
position (string) : (string) Optional. The position of the table. Defaults to position.top_right
verticalOffset (int) : (int) Optional. The vertical offset of the table from the top or bottom of the chart. Defaults to 0.
transposeTable (bool) : (bool) Optional. Will transpose all of the data in the matrices before rendering. Defaults to false.
textSize (string) : (string) Optional. The size of text to render in the table. Defaults to size.small.
borderWidth (int) : (int) Optional. The width of the border between table cells. Defaults to 2.
blankCellText (string) : (string) Optional. Text to use cells when adding blank rows for vertical offsetting.
fromArray(dataArray, position, verticalOffset, transposeTable, textSize, borderWidth, blankCellText)
Renders a string array as a table.
Parameters:
dataArray (string ) : (array_string) The data to be rendered in a table
position (string) : (string) Optional. The position of the table. Defaults to position.top_right
verticalOffset (int) : (int) Optional. The vertical offset of the table from the top or bottom of the chart. Defaults to 0.
transposeTable (bool) : (bool) Optional. Will transpose all of the data in the matrices before rendering. Defaults to false.
textSize (string) : (string) Optional. The size of text to render in the table. Defaults to size.small.
borderWidth (int) : (int) Optional. The width of the border between table cells. Defaults to 2.
blankCellText (string) : (string) Optional. Text to use cells when adding blank rows for vertical offsetting.
fromArray(dataArray, position, verticalOffset, transposeTable, textSize, borderWidth, blankCellText)
Renders a float array as a table.
Parameters:
dataArray (float ) : (array_float) The data to be rendered in a table
position (string) : (string) Optional. The position of the table. Defaults to position.top_right
verticalOffset (int) : (int) Optional. The vertical offset of the table from the top or bottom of the chart. Defaults to 0.
transposeTable (bool) : (bool) Optional. Will transpose all of the data in the matrices before rendering. Defaults to false.
textSize (string) : (string) Optional. The size of text to render in the table. Defaults to size.small.
borderWidth (int) : (int) Optional. The width of the border between table cells. Defaults to 2.
blankCellText (string) : (string) Optional. Text to use cells when adding blank rows for vertical offsetting.
debug(message, position)
Renders a debug message in a table at the desired location on screen.
Parameters:
message (string) : (string) The message to render.
position (string) : (string) Optional. The position of the debug message. Defaults to position.middle_right.
Cell
Type for each cell's content and appearance
Fields:
content (series string)
bgColor (series color)
textColor (series color)
align (series string)
colspan (series int)
rowspan (series int)
Crypto Daily WatchList And Screener [M]
Hi, this is a watchlist and screener indicator designed for traders in the field of cryptocurrencies who want to monitor developments in other currency pairs and indices.
The indicator consists of two tables. One of them is the table containing indices such as BTC dominance, total, total2, which allows you to track market developments and changes. In this table, you will find price information, daily change, stochastic, and trend information.
The other table includes cryptocurrencies like BTC/USDT, ETH/USDT, DOT/USDT, and more. In this table, you will see real-time prices, daily volume, daily change, stochastic, the correlation coefficient between the pair and Bitcoin, and the trend value calculated based on MACD.
The "Customize" section in the settings enables you to personalize the appearance of the tables according to your preferences.
Cobra's CryptoMarket VisualizerCobra's Crypto Market Screener is designed to provide a comprehensive overview of the top 40 marketcap cryptocurrencies in a table\heatmap format. This indicator incorporates essential metrics such as Beta, Alpha, Sharpe Ratio, Sortino Ratio, Omega Ratio, Z-Score, and Average Daily Range (ADR). The table utilizes cell coloring resembling a heatmap, allowing for quick visual analysis and comparison of multiple cryptocurrencies.
The indicator also includes a shortened explanation tooltip of each metric when hovering over it's respected cell. I shall elaborate on each here for anyone interested.
Metric Descriptions:
1. Beta: measures the sensitivity of an asset's returns to the overall market returns. It indicates how much the asset's price is likely to move in relation to a benchmark index. A beta of 1 suggests the asset moves in line with the market, while a beta greater than 1 implies the asset is more volatile, and a beta less than 1 suggests lower volatility.
2. Alpha: is a measure of the excess return generated by an investment compared to its expected return, given its risk (as indicated by its beta). It assesses the performance of an investment after adjusting for market risk. Positive alpha indicates outperformance, while negative alpha suggests underperformance.
3. Sharpe Ratio: measures the risk-adjusted return of an investment or portfolio. It evaluates the excess return earned per unit of risk taken. A higher Sharpe ratio indicates better risk-adjusted performance, as it reflects a higher return for each unit of volatility or risk.
4. Sortino Ratio: is a risk-adjusted measure similar to the Sharpe ratio but focuses only on downside risk. It considers the excess return per unit of downside volatility. The Sortino ratio emphasizes the risk associated with below-target returns and is particularly useful for assessing investments with asymmetric risk profiles.
5. Omega Ratio: measures the ratio of the cumulative average positive returns to the cumulative average negative returns. It assesses the reward-to-risk ratio by considering both upside and downside performance. A higher Omega ratio indicates a higher reward relative to the risk taken.
6. Z-Score: is a statistical measure that represents the number of standard deviations a data point is from the mean of a dataset. In finance, the Z-score is commonly used to assess the financial health or risk of a company. It quantifies the distance of a company's financial ratios from the average and provides insight into its relative position.
7. Average Daily Range: ADR represents the average range of price movement of an asset during a trading day. It measures the average difference between the high and low prices over a specific period. Traders use ADR to gauge the potential price range within which an asset might fluctuate during a typical trading session.
Utility:
Comprehensive Overview: The indicator allows for monitoring up to 40 cryptocurrencies simultaneously, providing a consolidated view of essential metrics in a single table.
Efficient Comparison: The heatmap-like coloring of the cells enables easy visual comparison of different cryptocurrencies, helping identify relative strengths and weaknesses.
Risk Assessment: Metrics such as Beta, Alpha, Sharpe Ratio, Sortino Ratio, and Omega Ratio offer insights into the risk associated with each cryptocurrency, aiding risk assessment and portfolio management decisions.
Performance Evaluation: The Alpha, Sharpe Ratio, and Sortino Ratio provide measures of a cryptocurrency's performance adjusted for risk. This helps assess investment performance over time and across different assets.
Market Analysis: By considering the Z-Score and Average Daily Range (ADR), traders can evaluate the financial health and potential price volatility of cryptocurrencies, aiding in trade selection and risk management.
Features:
Reference period optimization, alpha and ADR in particular
Source calculation
Table sizing and positioning options to fit the user's screen size.
Tooltips
Important Notes -
1. The Sharpe, Sortino and Omega ratios cell coloring threshold might be subjective, I did the best I can to gauge the median value of each to provide more accurate coloring sentiment, it may change in the future.
The median values are : Sharpe -1, Sortino - 1.5, Omega - 20.
2. Limitations - Some cryptos have a Z-Score value of NaN due to their short lifetime, I tried to overcome this issue as with the rest of the metrics as best I can. Moreover, it limits the time horizon for replay mode to somewhere around Q3 of 2021 and that's with using the split option of the top half, to remain with the older cryptos.
3. For the beginner Pine enthusiasts, I recommend scimming through the script as it serves as a prime example of using key features, to name a few : Arrays, User Defined Functions, User Defined Types, For loops, Switches and Tables.
4. Beta and Alpha's benchmark instrument is BTC, due to cryptos volatility I saw no reason to use SPY or any other asset for that matter.
Cleaner Screeners LibraryLibrary "cleanscreens"
Screener Panel.
This indicator displays a panel with a list of symbols and their indications.
It can be used as a screener for multiple timess and symbols
in any timeframe and with any indication in any combination.
#### Features
Multiple timeframes
Multiple symbols
Multiple indications per group
Vertical or horizontal layouts
Acceepts External Inputs
Customizable colors with 170 presets included (dark and light)
Customizable icons
Customizable text size and font
Customizable cell size width and height
Customizable frame width and border width
Customizable position
Customizable strong and weak values
Accepts any indicator as input
Only 4 functions to call, easy to use
#### Usage
Initialize the panel with _paneel = cleanscreens.init()
Add groupd with _screener = cleanscreens.Screener(_paneel, "Group Name")
Add indicators to screeener groups with cleanscreens.Indicator(_screener, "Indicator Name", _source)
Update the panel with cleanscreens.display(_paneel)
Thanks @ PineCoders , and the Group members for setting the bar high.
# local setup for methods on our script
import kaigouthro/cleanscreen/1
method Screener ( panel p, string _name) => cleanscreens.Screener ( p, _name)
method Indicator ( screener s , string _tf, string name, float val) => cleanscreens.Indicator ( s , _tf, name, val)
method display ( panel p ) => cleanscreens.display ( p )
init(_themein, loc)
# Panel init
> init a panel for all the screens
Parameters:
_themein (string) : string: Theme Preset Name
loc (int) : int :
1 = left top,
2 = middle top,
3 = right top,
4 = left middle,
5 = middle middle,
6 = right middle,
7 = left bottom,
8 = middle bottom,
9 = right bottom
Returns: panel
method Screener(p, _name)
# Screener - Create a new screener
### Example:
cleanscreens.new(panel, 'Crpyto Screeners')
Namespace types: panel
Parameters:
p (panel)
_name (string)
method Indicator(s, _tf, name, val)
# Indicator - Create a new Indicator
### Example:
cleanscreens.Inidcator('1h', 'RSI', ta.rsi(close, 14))
Namespace types: screener
Parameters:
s (screener)
_tf (string)
name (string)
val (float)
method display(p)
# Display - Display the Panel
### Example:
cleanscreens.display(panel)
Namespace types: panel
Parameters:
p (panel)
indication
single indication for a symbol screener
Fields:
name (series string)
icon (series string)
rating (series string)
value (series float)
col (series color)
tf (series string)
tooltip (series string)
normalized (series float)
init (series bool)
screener
single symbol screener
Fields:
ticker (series string)
icon (series string)
rating (series string)
value (series float)
bg (series color)
fg (series color)
items (indication )
init (series bool)
config
screener configuration
Fields:
strong (series float)
weak (series float)
theme (series string)
vert (series bool)
cellwidth (series float)
cellheight (series float)
textsize (series string)
font (series int)
framewidth (series int)
borders (series int)
position (series string)
icons
screener Icons
Fields:
buy (series string)
sell (series string)
strong (series string)
panel
screener panel object
Fields:
items (screener )
table (series table)
config (config)
theme (theme type from kaigouthro/theme_engine/1)
icons (icons)
Multiple Moving Average ToolkitFeatures Overview:
Multiple Moving Averages: The script allows you to plot up to five different Moving Averages (MAs) on your chart at the same time. You can choose the type of MA (EMA, SMA, HMA, WMA, DEMA, VWMA, VWAP) and the length of each one.
Color Ribbon: You can turn the MAs into a color ribbon by selecting the "Turn into Color Ribbon?" option. This will make the area between the MAs colored and can help you identify trends more easily.
MA Value Table: You can draw a table on your chart that displays the current values of each MA, whether the trend is bullish or bearish along with the length of the MAs. The current ATR value is also shown in the last cell of the table. You can choose the location of the table (Top Left, Top Right, Bottom Left, Bottom Right) and the transparency of the background color.
Crosses: The script can detect when two MAs cross over each other (1st MA crosses 5th MA and vice versa), indicating a potential trend reversal. It will plot crosses on the chart at the point of the crossover and give an alert if the "Bullish Cross Detected" or "Bearish Cross Detected" condition is met.
How to use:
Once the script is added to your chart, you can customize the settings to fit your preferences. You can choose the type and length of each MA, whether to turn them into a color ribbon, whether to plot crosses, and whether to draw the MA Value Table.
The MA Value Table can be moved to a different location on the chart by selecting the "Location of Table" option and choosing Top Left, Top Right, Bottom Left, or Bottom Right.
Watch for MA crossovers and alerts to identify potential trend reversals. The script can help you identify bullish and bearish trends by color-coding the area between the MAs and displaying the current values of each MA in the table.
Breakdown of the script:
User Inputs
The first section of the script defines several user inputs that allows you to customize the indicator. These include options for turning the MAs into a color ribbon, plotting crosses when there is a bullish or bearish cross of the MAs, drawing a table of the MA values, and setting the transparency of the ribbon. You can also select the location of the MA value table and customize the settings for each individual MA.
Moving Average Calculation
The script defines a function called "getMA" that calculates the moving average for a given type and length. The function uses a switch statement to determine which type of moving average to use, such as an exponential moving average (EMA), simple moving average (SMA), Hull moving average (HMA), weighted moving average (WMA), double exponential moving average (DEMA), volume-weighted moving average (VWMA), or volume-weighted average price (VWAP).
The script then calls this function to calculate the values of up to five different MAs, depending on the user input. The ATR (average true range) is also calculated using the TA library.
Color Filter and Cross Detection
The script sets a color filter based on the relationship between the MAs. If the shorter-term MAs are above the longer-term MAs, the filter is set to green to indicate a bullish trend, and if the shorter-term MAs are below the longer-term MAs, the filter is set to red to indicate a bearish trend. You can adjust the transparency of the ribbon to make it more or less visible.
The script also detects when there is a bullish or bearish cross of the MAs and can generate alerts to notify you.
MA Plotting
The script plots up to five MAs on the chart, depending on the user input. The MAs are plotted as lines with different colors and thicknesses, and you can choose to turn them into a color ribbon if desired.
Cross Plotting
The script plots crosses on the chart when there is a bullish or bearish cross of the MAs. The crosses are plotted as X shapes at the location of the cross and are color-coded to indicate the direction of the cross.
MA Value Table
Finally, the script draws a table of the MA values on the chart, displaying the values of each MA as well as the current trend and the ATR. You can customize the location of the table, and the table is colored to match the color filter of the MAs.
Feel free to message me or comment on the post with any questions or issues!
Much more to come!
Thanks for reading, enjoy!
Triple Quadratic Regression (w/ Normalized Value Table)This indicator draws three step lines - a fast (fuchsia), a medium (yellow), and a slow (blue) quadratic regression line to help the user obtain a clearer picture of current trends. Quadratic regression is better suited to determining (and predicting) trend than linear regression; y = ax^2 + bx + c is better to use than a simple y = ax + b. Calculating the regression involves five summation equations that utilize the bar index (x1), the price source (defaulted to ohlc4), the desired lengths, and the square of x1. Determining the coefficient values requires an additional step that factors in the simple moving average of the source, bar index, and the squared bar index.
In addition to the plotted lines, a change in bar color and a table were added. The bar color is influenced by the values of ax^2 and bx of the fast and medium length regressions. If ax^2 and bx for both the fast and medium lengths are above 0, the bar color is green. If they are both under 0, the bar color is red. Otherwise, bars are colored gray. In the table, located at the bottom of the chart (but can be moved), the ax^2 and bx values for each regression length are shown. The option to view normalized (scale of -1 to +1) values or the standard values is included in the indicator settings menu. By default, the normalized values are shown.
MA Band Distance Monitor'MA Band Distance Monitor' indicator is a simple tool for traders who rely on moving averages to make trading decisions. This indicator plots two moving averages of your choice (you can select the type of the moving average), and fills the space between them, creating a "band".
The indicator also generates a table that displays the current price distance from both the fast and slow moving averages, as well as the average of the two. This allows you to quickly assess the strength of the trend and potential entry or exit points.
In addition, the table also shows the average price distance from one to another MA and also the current distance between them, allowing you to compare the current price action to the historical average. This information can help you identify potential trend reversals and assess the overall health of the market.
*** Slow length input must be greater than fast length input, otherwise indicator will produce faulty results
Financials - Comparing CompaniesHello All
For a while I have been working on this indicator to compare financials of the companies and sort them accordingly. Finally I completed and published it. I preferred using new object type feature in Pine language™ and I hope it might be an example and helpful for the developers.
First of all, as we have limitation on security calls, the indicator can get and compare financials for 5 companies only. also Chart time frame must be 1Day or higher! ( I recommend 1Day time frame ). if not then the indicator stops and shows the error message: "Please set the time frame 1Day or higher" . More important than others: You should choose the companies from the same sector! Compare apples to apples :)
The Financials in the indicator:
Earnings Per Share
Price to Earnings Ratio
Price to Sales Ratio
Price to Book Ratio
Profit Margin
Dept to Equity
Current Ratio
Market Capitalization
Also more information shown for each stocks:
Closing Price, sets the color accordingly
2 Simple/Exponential moving average, you can set the length, also it checks if it is rising/falling and sets the color accordingly
Volume info
Average volume (20 days), you can set the period
Currency for each security
Lets see some features in it:
it sorts the companies according to the financials:
If you move the mouse onto any header then it shows explanation about the financial:
You can change location and text size:
You can set the type of Moving averages as SMA or EMA and you can also set the length for both . Headers for both are changed automatically by MA type and length
Colors for Closing price and MA cells are set automatically:
For new Objects in Pine language click here
P.S. You can use this indicator while analyzing the financials of the companies in same sector/industry. So please don't ask for the alerts :)
Enjoy!
Consensus Tables - Oscillators, Multi-MA , DFMA, and IchimokuThis indicator is a series of underlaid tables that determine a consensus value using a simple positive or negative score for a set signal. This consensus value is also shown as a histogram and reflected on the chart's bar colors. There are a total of four different table options to choose from: a set of trend and volume oscillators, a set of 11 moving averages, a set of Fibonacci moving averages and their own consensus line, and a set of Ichimoku-based conditions. The type of table can be chosen from a drop-down menu at the top of the user settings, with settings for each of the table types grouped up respectively.
Oscillator Table:
The Oscillator table consists of the Average Directional Index (ADX) set as a value instead of +/- and is not used in the scoring to gather consensus. Rather, a value of 25 or above is used to confirm the trend regardless of positive or negative. The Chande Momentum Oscillator (CMO), Detrended Price Oscillator (DPO), Momentum, Rate of Change (ROC), Relative Strength Index (RSI), True Strength Index (TSI), and Volume Oscillator are used in the Oscillator table for a consensus value and given a + or - depending on the condition being met. The conditions and weighting are as follows:
-- CMO > or < 0, given a weight of +/- 2
-- DPO > or < 0, given a weight of +/- 2
-- Momentum > or < 0, given a weight of +/- 2
-- ROC > or < 0, given a weight of +/- 2
-- RSI > or < 50, given a weight of +/- 1
-- TSI Value Line > or < 0, given a weight of +/- 1
-- TSI Signal Line > or < 0, given a weight of +/- 1
-- Volume Osc. > or < 0, given a weight of +/- 2
The consensus value is determined by adding these values together and dividing by 13.
Multi-MA Table:
For the Moving Average Ribbon/Multi-MA table the user is able to determine the source, type, and lengths of 11 moving averages. The type selection consists of EMA, DEMA, TEMA, SMA, RMA, VWMA, WMA, SMMA, and a Hull MA. The preset values for the 11 moving averages are 5, 7, 10, 14, 21, 26, 50, 75, 100, 150, and 200. The consensus conditions and weighting are as follows:
-- If MA(1 through 10) < or > the price source, given a weight of +/- 1
-- If MA(11) < or > the price source, given a weight of +/- 2
The consensus value is determined by adding these values together and dividing by 12.
DFMA Table:
The Democratic Fibonacci Moving Average table is derived from our indicator of the same name. The source for the DFMA can be chosen by the user, but the SMA lengths are predetermined in Fibonacci intervals from 3 to 233. The DFMA line itself is determined by finding the average value of these 10 Fibonacci MA lengths. The consensus conditions and weighting are as follows:
-- If Fib. MA (3-233) < or > the source, given a weight of +/- 1
-- If DFMA value < or > the source, given a weight of +/- 2
The consensus value is determined by adding these values together and dividing by 12.
Ichimoku Table:
The Ichimoku table values a handful of conditions using the Tenkan-sen/Conversion Line, Kijun-sen/Base Line, Senkou-span A and B, and the Chikou-span, each of which are given their standard values of 9, 26, 52, and 26, respectively, but can be changed in the user settings if desired. As opposed to the other tables, there are fewer conditions to be met and given values to. All of the conditions are given the same weighting (+/- 1). The conditions are as follows:
-- Kijun-sen < or > the source
-- Tenkan-sen < or > the source
-- Kijun-sen > or < the Chikou-span
-- Tenkan-sen > or < the Kijou-sen
-- Senkou Span A > or < Senkou Span B
The consensus value is determined by dividing the total value by 5.
Overall consensus and overall trend values are given alongside each of these options. The overall consensus value is determined by taking the average of the 4 respective consensus values. Trend values are determined as such:
-- If consensus value >= 0.75, considered a "Strong Buy"
-- If consensus value is between 0.25 and 0.75, considered a "Buy"
-- If consensus value is between 0.25 and -0.25, considered "Neutral"
-- If consensus value is between -0.25 and -0.75, considered a "Sell"
-- If consensus value is <= -0.75, considered a "Strong Sell"
Table colors are set as either green, red, or gray to reflect positive, negative, and neutral sentiment sentiment. Bar colors reflect the consensus value and the determined table trend:
-- If trend for the chosen table is "Strong Buy", bar color is green
-- If trend for the chosen table is "Buy", bar color is lime
-- If trend for the chosen table is "Neutral", bar color is gray
-- If trend for the chosen table is "Sell", bar color is orange
-- If trend for the chosen table is "Strong Sell", bar color is red
TableBuilderTableBuilder is a library designed to make it easier to create tables in PineScript.
It allows you to more flexibly define the structure of a table before actually building it.
Features:
Style inheritance: styles are inherited from Table, to Column, to Row, and then Cell.
Columns are useful for propagating/reusing style but they are not required.
Add rows with different numbers of cells. The resultant number of columns in the table will be determined by the max number of cells vs the number of defined columns.
Auto text color: Instead of having to set the font color for every cell, the color is automatically determined by the luminosity of the background color.
See the 'Demo' section of the code for an example.
Democratic Fibonacci Moving AveragesWith this indicator, we have taken moving averages at Fibonacci lengths (3 to 233) as well as the average of these values, labeled the DFMA. Additionally, these values have been inputted into a table overlay. The cross of the FibMA(233) and the DFMA can be used as a signal for long or short.
The FibMA lengths of 3 and 233 are plotted in white by default, the FibMAs with lengths between 3 and 233 are plotted in blue by default, and the democratic line (DFMA) that averages these lines is plotted in green or red (depending on if the value is above or below the 233-length FibMA).
Oasis Trading Group: Correlation Table The Correlation Table is an indicator that is used to measure the Correlation Coefficient of multiple assets at the same time in an easy to read table.
A quick introduction into reading a Correlation Coefficient:
A strong positive correlation (one asset moves in one direction the other asset also moves in the same direction) = +1.00
A strong negative correlation (one asset moves in one direction the other asset moves in the opposing direction) = -1.00
Typically you would like to see the correlation strength to be greater than 0.7 or less than -0.7 for there to be a tradable correlation. A reading close to zero would not offer optimal trade entries.
The other data the indicator is showing is the overall trend. This reading is a simple calculation based on the correlation length the user inputs, the indicator will determine if price action is trending up or down based on this length.
The indicator has a reading for the current timeframe that is on the chart and also a second timeframe which is defaulted to the daily.
This indicator is an add-on to the and I hope to have more updates coming soon.
For Access or Questions: Private message us. Thank you.
Multiple Moving Avg MTF TableThis script replaces the other script that was just the SMAs that where in a Multi Time Frame Table as this was a redo of that one and this one is SO MUCH MORE!!!!
Not only does this one do the Simple Moving Avg 5, 10, 20, 50, 120, 200 into a table that shows Current/Hourly/Daily/Weekly/Monthly/Quarterly ( 3M )/ Yearly. It now does Exponential Moving Avg , Weighted Moving Avg , and Volume Weight Moving Avg along with Simple Moving Avg.
I still use this script so that you can quickly capture the values so that short-term, and long-term resistance and support can be determined during market hours. Even better now you can select between SMA / EMA / WMA /or VWMA .
imgur.com
The table will change to the values based on the Choice of the type of Moving Avg and if you change the default values.
Now it will take a little bit for the table to show up, so please be patient. I have tested it with stocks, forex, and crypto.
SMA Multi Time Frame Table V1.5Since I couldn't find a script like this I made one so here is what it does.
The script will plot on the chart as well as post the related data into the table.
The default Simple Moving Avg are 5, 10, 20, 50, 120, 200 which can also be changed to whatever SMA you would like. The SMA values are then plotted on the charts so that quickly check to see where they are and how the candles are reacting to the SMAs.
Not only does the script plot the SMAs but it also places higher time frames into the table that is in the script, from current price, to daily, weekly, monthly, quarterly (3 months if you don't have it added) and yearly. The reason why was it price action of the stock does interact and can be rejected or find support from SMA on a higher time frames.
I still use this script so that you can quickly capture the values so that short-term, and long-term resistance and support can be determined during market hours.
Another good thing is that when you change the values in the script settings it also applies those settings to the table as well.
Now it will take a little bit for the table to show up, so please be patient. I have tested it with stocks, forex, and crypto.
I wanted to get this published and I am still working on the background to try and get EMAs. Where you can flip over to EMA to also see the EMA plots and table values for the MTF.
Financials Info by zdmreFundamentals provide a method to set the financial value of a company, security, or currency. Included in fundamental analysis is basic qualitative and quantitative information that contributes to the asset's financial or economic well-being. Macroeconomic fundamentals include topics that affect an economy at large. Microeconomic fundamentals focus on the activities within smaller segments of the economy. For businesses, information such as profitability, revenue, assets, liabilities, and growth potential are considered fundamentals
!!! When you change the values in the filter, you will see that the colors in the table change.
!!! Intrinsic Value Explained
There is no universal standard for calculating the intrinsic value of a company. The formula here is a partially differentiated version of the Ben Graham formula.
Formula;
Intrinsic value = Earning Per Share * MultiplierbySpecialRate * AveragePricetoEarnings * Power(Multiplier by SpecialRate, DiscountYear) * USMoneySupply2 / Power((1 + DiscountRate), DiscountYear) * USMoneySupply0
PnL and Buy & Hold TrackerIn this script I use a simple, not necessarily profitable, strategy of a cross of MAs to teach how to calculate and plot the PnL of each trade made by the indicator. I also show how to calculate the cumulative PnL of all trades and the Buy and Hold of the same period.
These calculations which are natively available in any strategy script, require a bit of resourcefulness to work in an indicator script.
It can be very useful to optimize parameters for the best performance of an indicator-based strategy.
I use variables to store the price of the asset at each buy signal to calculate the PnL with the closing price of that particular trade and another variable to store the price value of the first trade, which calculates the Buy and Hold percentage with the current price of the asset.
I plot the values of the trades in labels and the accumulated values in a table.
I also show how to calculate and plot the unrealized PnL of open trades.
Swing Dream - PAINT BARS | MA | EMA | DMA | VWAP | TABLE | ADR %- Swing Dream -
Script created for breakout-swing traders, in the style of QullaMaggie * , Dan Zanger, Oliver Kell, and Stockbee.
The following indicators are used by most successful breakout-swing traders such as mentioned above.
(As published) it contains:
Painted Bars, also known as inside/outside candles. Used for candle analysis and to determine breakout pivots & levels. For instance; use it in different timeframes and seek formations (ex, 3-1-2). For further inspiration, study Rob Smith's The Strat .
MA, Simple Moving Averages (Basic levels = 10,20,50,200). Use this indicator to define resistance/support areas as well as the overall long/swing-term trend. In breakout strategies such as EP, Flags, etc this can be used for trailing stops; an example, post-breakout, let the price ride the 20ma before exiting your position.
EMA, Exponential Moving Averages with periods inspired by Qullamaggie (10,20,65). Use this on shorter timeframes (ex, 1h) and for the same principles as MAs.
VWAP, Volume-Weighted Average Price. As for the previous, utilize this as a level indicator to find areas of resistance/support. Good for swing-trading as it implies whenever holders are profitable or not.
DMA, Displaced Moving Average (Horizontal). Personally, I use this a lot. Works very well for trailing stops (post breakout) and "bounce" areas. Choose your own offset and period.
ADR%, Average Daily Range Percentage. Displayed in the table and used to define a symbol's volatility. A very good tool for Qullamaggie-style trading. Personally, I try to find setups with over 6% ADR. Basic definition; low ADR% = Increased chance of a symbol to move slower and in smaller ranges. A higher value equals the opposite.
Table. A table with basic symbol-related information. Could save you plenty of time whenever you scan or search for new swing setups. Looking to add more features here.
Why should you use this script? Well, instead of having tens of different indicators, use this script and combine everything together with EP, Flag, or breakout principles. Suited for every plan, and more efficient in my opinion.
View settings to turn on/off different indicators.
* If you're looking for an introduction and further explanation of how Qullamaggie uses mentioned indicators, I could recommend checking out his website, stream, or participation in "Chat With Traders".
At last, I want to credit: @jkcqld @neolao @TheScrutiniser
This Script will get updated and improved.
// TechFille006
MTF - Options Strike Price - Screener & AlertsHi fellow traders ,
Pleased to share an MTF – Option Strike Price Screener.
It Screens 15 tickers for your set Strike Prices in the input column or you can also set the Stop Loss/target prices for your portfolio watch list in a single input window.
All you need to do is attach to any chart and set the periodicity of the to your desired alert() frequency requirement.
Now go to the input settings icon of the script and set your tickers, timeframe and option strike prices or if you would like to track your individual ticker stop loss or target prices!
Set the alert from the menu as usual click - Any alert() function call and bingo you are done!!
In all of 2-3 minutes you can set your Option Strike Alerts or TP’s or SL’s for 15 stocks of your portfolio..
Only a single alert() will track 15 tickers across multiple time frames..
Once your Alert is hit you may need to change the input settings and save as default and again set an alert() and delete the last alert()..
No more opening multiple charts and setting individual time consuming alerts().
Happy trading with TV..
Simple Watchlist with % Change Screener & AlertsHi fellow traders..
TV has generously increased the number of alerts!!
A Simple Watchlist with heatmap based on % change on daily timeframe.
Gives % change and RSI
you can set the percentage in the input box and then set alerts on your favorite watchlist.
Alerts also include days high and low..
Simple Table and array based code.
set for scrip close >10 can be easily changed in line 43..
Hope you Like it!
TIL Multi RSITrading Indicator Lab’s Multi RSI for TradingView is a powerful indicator that extends your capability to monitor RSI signals up to 20 different symbols all at the same time in just a single chart.
Eagle Eyes
The Multi RSI indicator can calculate the RSI of close prices of multiple symbols at any timeframe. This allows you to scan for RSI signals that may escape your search for potential good trading opportunities. It lets you choose the symbols you want to monitor for up to 20 slots and it INSTANTLY tells you which ones are overbought, oversold and even those that are at the verge of the buying or selling extremes in real-time so you can always be there when that big trend reversal happens.
Auto Sort
The symbols you add to the Multi RSI indicator are automatically sorted by their RSI readings from the most oversold down to the most overbought, each with a color assigned to them. Symbols that have an RSI reading of 50 and above are displayed in red while those below 50 are displayed in green. Those that breach the oversold and overbought signals are displayed in a brighter shade of color of red and green respectively. These colors are fully customizable in the indicator’s inputs.
Adjustable Oversold and Overbought Levels
The Multi RSI indicator uses the default 70/30 oversold-overbought levels but this can be easily adjusted in the Inputs section to match your preferences. The indicator’s color and alert system adjusts automatically to these changes.
Arrows
Beside each RSI reading is an arrow which gives you information about its trajectory, whether it is going up, down, or sideways. This is based on the last bar’s RSI value.
Alerts
The indicator lets you know when one or more symbols in the table crosses the oversold or overbought levels. These are predefined alert conditions that can be chosen in TradingView’s alert creation tool.
Available Alert Conditions
- Oversold – triggers when one or more symbols in the table are oversold
- Overbought – triggers when one of more symbols in the table are overbought
Inputs
- Length – sets the period of the RSI function to be applied to all symbols
- Oversold – sets the reference level for oversold signals (default level at 70)
- Overbought – sets the reference level for overbought signals (default level at 30)
- Symbol 1 – Symbol 20 – slots for TradingView symbols (charts) that you want to monitor
- Top Half Color 1 – the color of rows that are in the oversold level
- Top Half Color 2 – the color of rows that are 50 or above but not beyond the oversold level
- Bottom Half Color 1 – the color of rows that are in the overbought level
- Bottom Half Color 2 – the color of rows that are below 50 but not beyond the overbought level
- Position – sets where the indicator is displayed in the chart
- Font Size – sets the text size of the indicator
- Height – sets the size of each cell in the table. Size 0 means the height automatically adjusts to the chart’s size.
MYX Malaysia Bursa Futures Derivatives Auto DetectThis indicator intended for Malaysia Market only for auto detect Futures Market Derivatives refer to Bursa Malaysia
Indikator ini adalah untuk pasaran Malaysia sahaja untuk automatik mengenalpasti Derivatif Pasaran Hadapan rujuk kepada Bursa Malaysia
Indicator features :
1. Able to detect futures market.
2. List similar symbol or counter including total.
3. Font size small for mobile app and font size normal for desktop.
4. Show date updated by Bursa Malaysia.
Kemampuan indikator :
1. Boleh mengenal pasti pasaran hadapan.
2. Senarai simbol atau kaunter yang terlibat termasuk jumlah.
3. Saiz font kecil untuk mobile app dan saiz size normal untuk desktop.
4. Memaparkan tarikh kemaskini oleh Bursa Malaysia.
FAQ
1. Credits / Kredit
LucF & PineCoders
2. Code Usage / Penggunaan Kod
Free to use for personal usage.
Bebas untuk kegunaan peribadi.
3. Why table overlap with chart ? To avoid this, click indicator > Visual Order > Send to Front.
Kenapa table bertindih dengan carta ? Untuk mengatasi ini, klik indikator > Visual Order > Send to Front.
4. Some symbols not display such as Commodities Derivatives (OCPO and OPOL) and Equity Derivatives (OKLI).
These symbol are offcially displayed at Bursa Malaysia but not available in Trading View under prefix MYX.
And also Futures Market are not available in Trading View.
Beberapa simbol tidak dapat dipaparkan Derivatif Komoditi (OCPO and OPOL) and Derivatif Equiti (OKLI).
Simbol berikut dipaparkan secara rasmi di Bursa Malaysia tetapi tiada di Trading View di bawah prefix MYX.
Dan Pasaran Hadapan juga tiada di Stock Screener.
All Setting enabled.
Semua seting diaktifkan.
Example of recommended usage.
Contoh penggunaan yang disarankan.
Example of other derivatives. Similar derivatives can be shown.
Contoh derivatif lain. Derivatif yang sama boleh dipaparkan
OHLC-Tables New FeatureHello All,
The command shows the opening-high-low-closing-change values of that day based on the previous value in each period.
You can set the clock in any time zone you want.
You can use the indicator by adapting it wherever you want on your screen. You can adjust its position. Top-Left-Middle Left- Bottom Left/ Top Right-Middle Right- Bottom Right.
Although it is not a command with a Buy-Sell indicator, its user-friendliness and convenience were taken into account while developing it.
The purpose of the indicator is to allow you to consider the values while focusing not only on the chart you are watching.