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...
Library "WaveGenerator" Wave Generator Library max(source) max Parameters: source : is the input to take the maximum. Returns: foat min(source) min Parameters: source : is the input to take the minimum. Returns: foat min_max(src, height) min_max Parameters: src : is the input for the min/max height Returns:...
Library "CommonTypesMath" Provides a common library source for common types of useful mathematical structures. Includes: `complex, Vector2, Vector3, Vector4, Quaternion, Segment2, Segment3, Pole, Plane, M32, M44` complex Representation of a Complex Number, a complex number `z` is a number in the form `z = x + yi`, Fields: re : Real part of the...
Library "Sub_Super_Script_and_RomanNumerals_Library" Library to transform numbers into Roman numerals / Super-Sub script / check if value is alpha or number isnumber(input) check to see if value is a number Parameters: input : (string/float/int) value to check Returns: (na) if value is NOT a number and input (string/float/int) if value is a...
Library "FrizLabz_Time_Utility_Methods" Some time to index and index to time helper methods made them for another library thought I would try to make them as methods UTC_helper(utc) UTC helper function this adds the + to the positive utc times, add "UTC" to the string and can be used in the timezone arg of for format_time() Parameters: utc :...
Library "Position" Allows for simulating trades within an indicator. newTrade(size, price, timestamp) Creates a new trade object. Parameters: size : The size of the trade (number of shares or contracts). price : The price at which the trade took place. timestamp : The timestamp of the trade. Defaults to the current time. Returns: A new...
Library "Liquidationline" f_calculateLeverage(_leverage, _maintainance, _value, _direction) Parameters: _leverage _maintainance _value _direction f_liqline_update(_Liqui_Line, _killonlowhigh) Parameters: _Liqui_Line _killonlowhigh f_liqline_draw(_Liqui_Line, _priceorliq) Parameters: _Liqui_Line ...
Library "Events" events() Returns the list of dates supported by this library as a string array. Returns: array : Names of events supported by this library fomcMeetings() Gets the FOMC Meeting Dates. The FOMC meets eight times a year to determine the course of monetary policy. The FOMC announces its decision on the federal funds rate at the...
Library "Distributions" Library with price distribution zones calculation helpers. Based on research from "Trading Systems and Methods, 5th Edition" by Perry J. Kaufman getZones(h, l, c, window) Returns price distribution zones based on HLC and for some period Parameters: h : high price l : low price c : close price window : period...
Library "PerformanceTable" TODO: add library description here This library was created as a library because adding a performance table to an existing strategy script made the strategy script lengthy and inconvenient to manage. The monthly table script referenced @QuantNomad's code. The performance table script referenced @myncrypto's code. To use, copy and...
Library "SH_Library" events() Returns the list of dates supported by this library as a string array. Returns: array : Names of events supported by this library fomcMeetings() Gets the FOMC Meeting Dates. The FOMC meets eight times a year to determine the course of monetary policy. The FOMC announces its decision on the federal funds rate at the...
Refer to notes for instruction ===================================================================