Crypto Market Cap, BTC/USD, ETH/USD, USDT/USD, XRP/USD, Bitcoin
WDI, BAYER AG NA O.N, DAIMLER AG NA O.N, Apple, Advanced Micro Devices Inc, Amazon Com Inc
DAX Index, TECDAX TR, MDAX PERFORMANCE-INDEX, Dow 30, S&P 500, Nasdaq Composite
Euro Bund, Euro BTP, Euro BOBL, Germany 10Y, US 10Y, Ultra T-Bond
Method to do a custom switch that can handle int/float/bool/string type conditions using arrays.
Example of manipulating a float series to: • switch from one source to another • maintain a level by referencing itself This script publication is intended for: • Educational Purposes Who is it for? Anyone who wants to learn how to change the position or state of an active float series.
Example primarily focuses on: • creating a simple function to get a time offset value • using the offset to set drawing locations in the future • how to properly set up and manipulate line positions Extras ( end of script ): • inclusion of vertical lines for visualising start and end points using the time offsets • inclusion of label to read out the current...
This is the finalized code released to the public that I created in a video linked here. This indicators combines a Bollinger Band and Stochastic RSI to produce signals for possible price reversal. The signals are displayed by default as green arrows for bullish and red arrows for bearish. To trigger a signal the indicator checks for the following: (Bullish) ...
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...
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...
Pinescript requires many of its built-in functions to use a simple int as their period length, which entails the period length cannot vary during the script's execution. These functions allow using a series int or series float for their period length, which means it can vary on each bar. The functions shared in this script include: Rolling sum: ...
Slow stochastic with ADX exhaustation and sell/entry points as orange/green circles. This is a script I remade from Marco Valente's "RSI Combo" and Oshri17 "Slow stochastic". Credits and thanks to them for sharing, I just expanded the diversity ^^ Hope you enjoy phit! ;D
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.
Example of applying polynomial regression channel to spreads or hedges between 2 assets.
Hey! This time I took the pattern recognizer from a previous script I worked. It overlays the Arrows on the chart. Legend: #Maroon colour: Strong bearish signal #Red colour: Bearish signal #Dark Green colour: Strong bullish signal #Lime: Bullish signal NOTE: Also, you can untick the patterns you don't find useful, but I kept every pattern to get a complete...
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...
a small tutorial to explain how to work with orders, comments in the script.
This script is for a triple moving average indicator where the user can select from different types of moving averages and periods. This script improves upon tutorial 3 by adding source selection for MAs and another option for an MA that is not built-in, the HMA . It is meant as an educational script with well formatted styling, and references for specific functions.
FOR EDUCATIONAL PURPOSES There are multiple tools that allow you to place "scaled orders" on your exchange, namely Alertatron and Bybit Tools. This script is based on some Alertatron features, but you can use it for any grid like order placing strategy. Even if thats not your thing it's an example of how to use arrays in pinescript. FROM PRICE - is the price to...
Round function in PineScript is very simple and allows you to round numbers only to the closest integer number. This is a bit irritating because I very often have to round numbers to some decimal places and not integer. So I created 2 functions I use all the time and now sharing them with you. roundn - rounds the values in its first argument to the...
Example on how to create custom grids with variable N lines/labels:
EXPERIMENTAL: A example on how to retrieve statistics from a recurring event. Can be used to optimized strategy's, trade parameters, etc..