Example of various methods to show dashed or solid vertical lines on chart based on using either session or time. Credit for line method goes to midtownsk8rguy -> Credit for plot method goes to PineCoders -> www.pinecoders.com Special thanks to LucF, midtownsk8rguy, and PineCoders for permission to use their work. NOTICE: This is an example script and not...
Lots of moving averages are based on a weighted sum, the most common ones being the simple (arithmetic) and linearly weighted moving average. The problems with the weighted sum approach is that when your moving average is a FIR filter then the number of operations increase with higher values of length, and when the weights are based on a complex calculation this...
Signals & Overlays™ is an all-in-one toolkit made up of more than 20+ features primarily focused on generating useful signals & overlays to fulfill any trader's technical analysis needs with relevant data. Created directly with TradingView Pine Script Wizard, alexgrover - this is a first of its kind comprehensive script made fully from the ground-up to provide an...
we all know how moving averages suffer from lag - they have a delayed response to change in the underlying values - regardless if the underlying values are price movement or some kind of indicator formula that we are trying to smooth using a moving average. here's a simple technique that can help minimize the lag built into the moving average - you can use this...
Example on how to create custom grids with variable N lines/labels:
™TradeChartist Show and Tell - Ichimoku Cloud is a free and easy to use script that helps anyone learn and understand the Ichimoku cloud by using the 'Show and Tell' option from the indicator settings and by choosing the Ichimoku component/Signal from the dropdown box. For individuals new to Ichimoku Cloud , Show and Tell option will help explain the components...
Example of requesting Earnings, Splits, Dividends using pine-script. That way is inner representation of data in TradingView, so it can be changed any time. It's just an example of requesting of the data. Description of the series. Earnings: time: report date (unix time stamp) open: estimate value low: reported value close: actual value high: fiscal...
A method to store a bunch of numbers in one string. Using my method of translating a string to a number, we can put several values in one string and then pop them up when we need. To store the values I use a semicolon as a separator, so the format of the string is next one: NUMBER:NUMBER:NUMBER:NUMBER I don't see any useful application of this method (maybe,...
A small method to translate strings to numbers. For example, we have a string: s = "321" To check if the last symbol is "1", we might just try to remove (or replace with an empty string) the symbol "1". If the string changed, then there was the symbol "1" in the string: s2 = str.replace_all (s, "1", "") now s2 is "32", so s == s2 returns false. But we can't...
Script shows how to get a value from a bar from a year (or a few years) ago.
This script is an extension of the classical engulf pattern with added rules and user defined features. Engulfing Candle Definition: - Bullish Engulfing: Trade BELOW the prior candle's LOW and CLOSE ABOVE the prior candle's HIGH. Previous candle can be an up (bullish) or a down (bearish) candle - Bearish Engulfing: Trade ABOVE the prior candle’s HIGH and CLOSE...
just publishing to share to novice pine coders like myself any feedback on layout/structure/shortcuts will always be appreciated, not that this is a long script with much that can go wrong short little what ever to show variable alert message needs to draw the number from a plotted number like line 18 and 19, and cant be gettin the numbers from line 14 and 16
A script for SMMA calculated on fixed timeframe, different from the main chart's timeframe. As it's known, we can't use mutable variables with security. At the same time, SMMA references to the previous values. So it's impossible to create SMMA on different timeframe, just passing a variable with SMMA to security. To overcome this restriction, we should use a...
Hey, I coded this script to ease the diphunting and to identify a trend easily. You have a FAST/SLOW Ma/Emas, and a LRL which is made of 2 different lenghts aswell. LRL gives you the dominating trend. SLOW EMA100 a LIME/RED signal, which you have to interpret in function of the LRL line. The fast MA25 is useful as a moving Support/Resistance line. Im still...
Especially for future users, such as ES/NQ/RTY/YM, etc., this script can hide the extended hours/non-intraday bars and leave the intraday bars only. With this script , you can find the intraday support/resistance quite easily! Example, if you are a ES investor, you can easily find the intraday support/resistance level ,which is almost equal to SPY, with...
Simple signals example for Risk Management Wrapper The unique part is that there is a single variable used for both Buy and Sell conditions. Technically, a variable can have an infinity of values, so why not use that in our favour. A value of -1 is used for the SELL alert condition , and a value of +1 is used for the BUY alert condition . The Risk...
This script is for a simple moving average indicator. It is meant as an educational script with well formatted styling, and references for specific functions.
Hey! I will share with u the Rate Of Change indicator for 21 coins, it's special to use with my last published script, the Correlation formula. You can find volatility, with a directional sense if it's a positive change, or negative change. Hope you enjoy it!