Library "StyleLibrary" A small library of Pine Script functions that return built-in style variables. method sizeStyle(size) Takes a `string` that returns the corresponding built-in size style variable. Namespace types: series string, simple string, input string, const string Parameters: size (string) : A `string` representing a built-in size...
Library "CurrentlyPositionIndicator" Currently position indicator run(_index, _price, _stoploss, _high, _low, _side, _is_entered, _colors, _position_left, _box_width) Currently positions indicator Parameters: _index (int) : entry index _price (float) : entry price _stoploss (float) : stoploss price _high (float) : range high _low...
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 "swap" Side / Boundary Based All Types Swapper - three automagical types for Arrays, Matrixes, and Variables -- no signal : Long/ Short position autoswap -- true / false : Boolean based side choice -- Src / Thresh : if source is above or below the threshold - two operating modes for variables, Holding mode only for arrays/matrixes -- with two ...