This is a simple exit example in $$ (symbol's currency) for educational purpose .
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...
Example of how to apply and use Dynamic Zones with an indicator by injecting it's source into my adaptation of the original idea by Leo Zamansky, Ph.D., and David Stendahl. • Load your desired oscillating indicator on your chart (CCI, RSI, etc). • Load my "How To Use Dynamic Zones" indicator on your chart. • In the "How To Use Dynamic Zones" indicator settings...
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...
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
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...
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.
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 as an actual strategy. By using this script or...
*** 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...
An example of Binary Option Arrows (BOA) for candlestick patterns bearish and bullish harami. With results as coloured 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 -...
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...
Simple script to view Heiken-Ashi candles below a normal candles chart. Could also be useful for using HA calcs in strategy scripts on normal candles chart for proper backtesting. I adapted this to v4 from original v2 script by @samtsui. If you like please remember to give him a Thumbs Up for his original version! ->
Example function of a markov chain monte carlo simulation.
just a example on how to edit line style on the output of the polynomial regression library..
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 used as an actual...
Example how to limit the number of round trips per day. If entry condition is never met logic will force a round trip at end of day. Set chart to a timeframe that is lower than 1 Day period. NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and...