Here is an interactive tool that can be used for learning a bit about Elliott Waves 🎲 How it works? The script upon load asks users to enter 6 pivots in an order. Once all 6 pivots are selected on the interactive chart, the script will calculate if the structure is a valid motive wave. When you load the script, you will see a prompt on the chart to select points...
Are you a fan of supertrend? Me too!! Here is a supertrend indicator which provides multiple variation options to chose from. 🎲 Introduction Supertrend is a popular technical indicator used by traders to identify potential trend reversals and determine entry and exit points in financial markets. It is a trend-following indicator that combines price and...
Caution: This algorithm is very heavy and bound to cause timeouts. If that happens, there are few settings you can change to reduce the load. (Will explain them in the description below) 🎲 Recursive Reversal Chart Patterns Indicator Welcome to another exploration of Zigzag and Pattern ecosystem components. Previously we derived Pitchfork and Recursive Zigzag...
Here is the strategy version of the indicator - Master Supertrend Options and variations are same throughout. 🎲 Variations Following variations are provided in the form of settings. 🎯 Range Type Instead of ATR, different types of ranges can be used for stop calculation. Here is the complete list used in the script. Plus/Minus Range* - Calculates plus...
Library "cphelper" ACPU helper library - for private use. Not so meaningful for others. calculate_rr(targetArray, rrArray, breakevenOnTarget1) calculates risk reward for given targets Parameters: targetArray (float ) : array of targets rrArray (float ) : array of risk reward breakevenOnTarget1 (simple bool) : option to breakeven Returns:...
Library "Drawing" User Defined types and methods for basic drawing structure. method tostring(this, sortKeys, sortOrder, includeKeys) Converts DrawingTypes/Point object to string representation Namespace types: Point Parameters: this (Point) : DrawingTypes/Point object sortKeys (bool) : If set to true, string output is sorted by keys. ...
Library "ReversalChartPatternLibrary" User Defined Types and Methods for reversal chart patterns - Double Top, Double Bottom, Triple Top, Triple Bottom, Cup and Handle, Inverted Cup and Handle, Head and Shoulders, Inverse Head and Shoulders method delete(this) Deletes the drawing components of ReversalChartPatternDrawing object Namespace types:...
Library "TradeTracker" Simple Library for tracking trades method track(this) tracks trade when called on every bar Namespace types: Trade Parameters: this (Trade) : Trade object Returns: current Trade object Trade Has the constituents to track trades generated by any method. Fields: id (series int) direction (series int) :...
🎲 Session Filter: A Customisable Trading Indicator for Defining Preferred Trade Sessions Session Filter is a simple trading indicator that enables traders to define their preferred trading sessions and optimise their approach based on individual preferences. By providing a range of flexible customisation options, Session Filter can help traders reduce risk,...
Library "HarmonicPatternTracking" Library contains few data structures and methods for tracking harmonic pattern trades via pinescript. method draw(this) Creates and draws HarmonicDrawing object for given HarmonicPattern Namespace types: HarmonicPattern Parameters: this (HarmonicPattern) : HarmonicPattern object Returns: current HarmonicPattern...
Volume profile is useful tool to understand the demand and supply zones on horizontal level. But, what if you want to measure the volume levels over trend line? In trending markets, the feature to measure volume over angled levels can be very useful for traders who use these measures. Here is an attempt to provide such tool. 🎲 How to use 🎯 Interactive input...
Library "LineWrapper" Wrapper Type for Line. Useful when you want to store the line details without drawing them. Can also be used in scnearios where you collect lines to be drawn and draw together towards the end. draw(this) draws line as per the wrapper object contents Parameters: this : (series Line) Line object. Returns: current Line object ...
Library "DataChart" Library to plot scatterplot or heatmaps for your own set of data samples draw(this) draw contents of the chart object Parameters: this : Chart object Returns: current chart object init(this) Initialize Chart object. Parameters: this : Chart object to be initialized Returns: current chart object addSample(this,...
Library "arraymethods" Supplementary array methods. delete(arr, index) remove int object from array of integers at specific index Parameters: arr : int array index : index at which int object need to be removed Returns: void delete(arr, index) remove float object from array of float at specific index Parameters: arr : float...
Here is an another outcome of Object Oriented Zigzag and Pattern Ecosystem of Libraries. We already have another implementation of recursive zigzag which makes use of earlier library rzigzag . Here in this example, we make use of similar logic but leverage the new type and method based Zigzag system libraries to derive the indicator. 🎲 Design Overview ...
"Say Hi" to object oriented programming with Pinescript using types and methods. This is the beginning of new era of Pinescript where we are moving from isolated scripts containing indicator and strategies to whole ecosystem of Object Oriented Programming with libraries of highly reusable components. Those who are familiar with programming would have already...
Library "Logger" Logger Library based on types and methods. Debugging made easy with this simple utility. To enable debugging, we now just need to add 3 lines of code. import HeWhoMustNotBeNamed/Logger/1 as l var logger = l.Logger.new(minimumLevel = 'DEBUG') logger.init() Once done, use it anywhere in the script with simple logger messages. ...
Library "PitchforkMethods" Methods associated with Pitchfork and Pitchfork Drawing. Depends on the library PitchforkTypes for Pitchfork/PitchforkDrawing objects which in turn use DrawingTypes for basic objects Point/Line/LineProperties. Also depends on DrawingMethods for related methods tostring(this) Converts PitchforkTypes/Fork object to string...