📑 Showcase This is ready-to-show indicator version of the example code form the `motion` library. It can be used to create string- or color-based effects. Library: ================================================================================ 📑 Setup To use this library in your own scripts, you must first import it. To do this, add the following line to...
An example of how to implement Ichimoku in other scripts using my `lib-hlm`. You can copy and paste this code into any `\\@version=5` indicator to add Ichimoku to it.
An example and overview of the syminfo and tickerid functions to be able to access different tools. Here is an example of accessing the Bitfinex exchange (and requesting "instrument name") when another exchange is open (BINANCE:BTCUSDT) There is a difference in name between BINANCE:BTCUSDT and BITFINEX:BTCUSD exchanges Try swapping // T =...
Simple Example Table for Displaying Price, RSI, Volume of multiple Tickers on selected Timeframe Displays Price, RSI and Volume of 3 Tickers and Timeframe selected by user input Conditional Table Cell coloring Price color green if > than previous candle close and red if < previous candle close RSI color green if < 30 and red if > 70 (RSI14 by default) Volume...
'Study forloop' pinescript Program to print star Triangle The Program Logic For example, the following Pinescript programme will need two nested for loops. The outer forloop is for rows and the inner forloop is for columns or stars. to create a triangle shape.
This is an example script for checking how far the current bar has progressed towards it's completed state. This works for any time frame, eliminating extra logic calls and conversions for each timeframe.period. It is not intended to be a standalone indicator, but rather as a resource for additional logic triggers on the real time bar of a pine script. The main...
In the v5 version of PineScript, casting a string to a float - float(x) - does not appear to work, in spite of the reference manual seemingly indicating that it should. The simplest test case that I could generate "float('4750.0')" would result in a "Cannot call 'float' with argument 'x'='4750.0'. An argument of 'literal string' type was used but a 'const float'...
just a example on how to edit line style on the output of the polynomial regression library..
About this script: This example aims to highlight an alternative way to view HTF data by providing basic interpolation functionality. This script does not aim to provide use in itself as an indicator or strategy. Reason for study: Educational Purposes Only
Example function of a markov chain monte carlo simulation.
a test case for the KDE function on price delta. the KDE function can be used to quickly check or confirm edge cases of the trading systems conditionals.
The retracement tracker function(s) in this script outline how to: Track conditions using "toggle" booleans. Use multiple coinciding conditions to trigger an event just once. What is a retracement? "Retracements are temporary price reversals that take place within a larger trend. The key here is that these price reversals are temporary and do not...
This is an example of how to reference higher timeframe data without the need for a 'security()' call. I have attempted to create the function example: f_insecurity() with the purpose of wrapping up and pumping out all common relevent HTF price data that's needed for your everyday indicators in a reliable fashion.
Example of applying polynomial regression channel to spreads or hedges between 2 assets.
A simple VWAP and SMA smoothing on the candles along with some momentum coloring. Basically, if the "slider" is slid all the way up and it turns red, moving down or losing volume t's probably going down. If it's all the way down and starts turning green, getting bigger and seeing volume, it's probably going up. this is a prototype indicator that I plan to extend...
This script extends my other two Array examples (which I've also provided to you open source): The Ticker-centric 5m,15m,45m,1h,4h,1d resolution labels using arrays: And the more Macro VIX,GLD,TLT,QQQ,SPY,IWM 1d resolution labels using arrays: This script aims to show how to use min/max/avg with Arrays easily. My next example after this will be exploring the...
Ever wish you didn't have to rapidly flip between 6 different tickers to get the full picture? Yeah, me too. Do you also wish that you kind of understood how the shift / unshift function works for arrays? Yeah, I did too. Both of those birds are taken care of with one stone! The Macro Consolidated Interval Display uses the new Array structure and security to...
Ever wish you didn't have to rapidly flip between 6 different intervals to get the full picture? Yeah, me too. Do you also wish that you kind of understood how the shift / unshift function works for arrays? Yeah, I did too. Both of those birds are taken care of with one stone! The Consolidated Interval Display uses the new Array structure and security to display...