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 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...
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...
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...
Example on how to create custom grids with variable N lines/labels:
EXPERIMENTAL: Practical example of how to create a shared function instance.
Example how to overlay the first lower timeframe bar of the day across the entire day. Set chart to a timeframe that is lower than 1 Day period. Also included option for coloring wick pressure of that bar. 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...
Example how to color patterns of 3 bodies growing or waning by percentage with or without trend. Also included option for alert triggers. The yellow triangles on the chart denote where the alert triggers will fire. • Choose Pattern Of Filter: shows bodies growing or waning or both. • Sample Lengths Of AvgBar: number of recent bars to use for average size. •...
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 how to color the trigger bar of the condition and n-1 prior bars using only 1 barcolor() function. Currently when offsets are used in barcolor(), bgcolor(), plot(), plotarrow(), plotchar(), or plotshape(), the offset only works with a simple (static) integer. If series (dynamic) integers are used instead, there is not an error, but the series values are...
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 -...
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! ->
A simple example script showing how to use label.new() to plot pivot prices on the chart. A full tutorial and commentary is available on the backtest-rookies website.
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...
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...
Pinescript v3 Compatibility Framework (v4 Migration Tool) This code makes most v3 scripts work in v4 with only a few minor changes below. Place the framework code before the first input statement. You can totally delete all comments. Pros: - to port to v4 you only need to make a few simple changes, not affecting the core v3 code functionality Cons: - without...
functions using the new line functions in V4 to draw multiple geometric shapes.
Function to make it easy to display text information on the chart.