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...
A simple script that adjusts the Volatility Percentile Indicator visibly in order to better accommodate entries/exits and certain trading setups/strategies. -------------------------------------------------------------------------------------------------------------------------------------------------------- TL;DR - Remember after a full reset, we are looking...
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 "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...
Library "PitchforkTypes" User Defined Types to be used for Pitchfork and Drawing elements of Pitchfork. Depends on DrawingTypes for Point, Line, and LineProperties objects PitchforkDrawingProperties Pitchfork Drawing Properties object Fields: extend : If set to true, forks are extended towards right. Default is true fill : Fill forklines with...
Library "ZigzagMethods" Object oriented implementation of Zigzag methods. Please refer to ZigzagTypes library for User defined types used in this library tostring(this, sortKeys, sortOrder, includeKeys) Converts ZigzagTypes/Pivot object to string representation Parameters: this : ZigzagTypes/Pivot sortKeys : If set to true, string output is...
Library "ZigzagTypes" Zigzag related user defined types. Depends on DrawingTypes library for basic types Indicator Indicator is collection of indicator values applied on high, low and close Fields: indicatorHigh : Indicator Value applied on High indicatorLow : Indicator Value applied on Low PivotCandle PivotCandle represents data of the...
Library "DrawingMethods" tostring(this, sortKeys, sortOrder, includeKeys) Converts DrawingTypes/Point object to string representation Parameters: this : DrawingTypes/Point object sortKeys : If set to true, string output is sorted by keys. sortOrder : Applicable only if sortKeys is set to true. Positive number will sort them in ascending...
Library "DrawingTypes" User Defined Types for basic drawing structure. Other types and methods will be built on these. Point Point refers to point on chart Fields: price : pivot price bar : pivot bar bartime : pivot bar time LineProperties Properties of line object Fields: xloc : X Reference - can be either xloc.bar_index or...
Here is a simple tool to measure and display outcome of certain RSI event over heat map. 🎲 Process 🎯Event Event can be either Crossover or Crossunder of RSI on certain value. 🎯Measuring Impact Impact of the event after N number of bars is measured in terms of highest and lowest displacement from the last close price. Impact can be collected as either...
Many times while developing algos based on patterns and reversals, I come across issues which needs lower timeframe inspection. Loading multiple charts and comparing equivalent lower timeframe is slightly cumbersome at times. Hence, I thought of building this simple tool - which will instantly provide me lower timeframe candles for given candle. Since the candle...