Crypto Market Cap, BTC/USD, ETH/USD, USDT/USD, XRP/USD, Bitcoin
Reliance, INDIABULLS HOUSING, YES BANK, STATE BK OF INDIA, HDFC BANK, TATA STEEL LTD
Nifty, BSE SENSEX, S&P 500, Nasdaq Composite, FTSE 100, DAX Index
US 10Y, Euro Bund, Germany 10Y, Japan 10Y Yield, UK 10Y, India 10Y
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.
This is a simple exit example in $$ (symbol's currency) for educational purpose .
This is a stepped trailing exit example for educational purpose . Short brief. There are 1 stop loss and 3 profit levels. When first tp is reached we move stop loss to break-even. When second tp is reached we move stop loss to first tp. When third tp is reached we exit by profit.
Custom source function for toggling traditional Candle sources or Heikin-Ashi sources on a traditional Candles chart. Thanks to PineCoders for rounding method: www.pinecoders.com Thanks to @LucF and @RicardoSantos for their advice and enlightenment as always. NOTICE: This is an example script and not meant to be used...
Function to make it easy to display text information on the chart.
Higher TimeFrame using custom source function for toggling traditional Candle sources or Heikin-Ashi sources on a traditional Candles chart. Thanks to PineCoders for rounding method: www.pinecoders.com Thanks to @LucF and @RicardoSantos for their advice and enlightenment as always. NOTICE: This is an example script and not meant to be...
*** THIS IS JUST AN EXAMPLE OF STRATEGY RISK MANAGEMENT CODE IMPLEMENTATION *** For my own future reference, and for anyone else who needs it. Pine script strategy code can be confusing and awkward, so I finally sat down and had a little think about it and put something together that actually works (i think...) Code is commented where I felt might be necessary...
Example how to set the time range window to be backtested for both entries and exits. Additional examples are also included showing how to set the date range and toggle plot visibility. By incorporating this code with your own strategy's logic, it will allow you to backtest various time windows. Much gratitude to @LucF and @a.tesla2018 for help with including...
Example how to select and set date range window to be backtested. Normally when you change chart period it changes the number of days being backtested which means as you increas the chart period (for example from 5min to 15min) you also increase the number of days traded, so you can not compare apples to apples for which period would yield best returns for your...
*** THIS IS JUST AN EXAMPLE OF STRATEGY TIME LIMITING CODE IMPLEMENTATION *** This is a follow up to my example for risk management implementation here: Code remains mostly unchanged, but now includes a time limiting implementation. Relevant code blocks for the time factor...
A simple example showing how to create a gradient in a array.
An example of binary option arrows for candlestick patterns bearish and bullish harami. With results as colored background and an option to choose your expiration (one candle by default). It's just an example for those who has their own strategy and wants to make nice arrows in their chart. All you need to do is rewrite piece of script in lines 9:13 - feel free to...
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 ->...
This was a follower suggested script. This script shows an example of how to create a custom alert message using the alertcondition() function in pine. Features: - Well documented code with links to documentation for specific functions. - Two alertconditions in a different order than the plots they reference to show the importance of plot IDs. In order to...
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...