Library "LightyearWebhook" This library provides functionality to create a webhook signal configuration for trading strategies. It generates a JSON string with relevant trading information which can be sent to external systems.
signal_config(leverage, contract_size, token) signal_config description Generates a JSON string containing the signal configuration for trading strategies. This includes information about the symbol, order action, market position, amount, price, cost, fee, order ID, trade timestamp, previous entry price, previous market position size, initial capital, leverage, contract size, and strategy token. Parameters: leverage (int) contract_size (int) token (string) Returns: string A JSON string containing the signal configuration.
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House rules.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.