Commission-aware Trade Labels Description: This library provides an easy way to visualize take-profit and stop-loss levels on your chart, taking into account trading commissions. The library calculates and displays the net profit or loss, along with other useful information such as risk/reward ratio, shares, and position size. Features: Configurable...
Library "TrailingStops" This library contains functions to output trailing stop lines. f_marketStructureStop(_restartMode, _flipMode, _restartLowIn, _restartHighIn) Parameters: _restartMode - Defines how the stop lines persist. Allowed values are: "Always On" - The stop lines are always present and they just reset when they're crossed. ...
Library "Strategy_PnL_Library" TODO: This is a library that helps you learn current pnl of open position and use it to create your own dynamic take profit or stop loss rules based on current level of your profit. It should only be used with strategies. inTrade() inTrade: Checks if a position is currently open. Returns: bool: true for yes, false for no. ...
Library "ATRStopLossFinder" Average True Range Stop Loss Finder credits to www.tradingview.com for the initial version stopLossFinder(length, smoothing, multiplier, refHigh, refLow, refClose) Returns the stop losses for an entry on this candle, depending on the ATR Parameters: length : simple int optional to select the lookback amount of candles ...