PINE LIBRARY
WebhookGenerator

Library "WebhookGenerator"
Generates Json objects for webhook messages.
GenerateOT(license_id, symbol, action, order_type, trade_type, size, price, tp, sl, risk, trailPrice, trailOffset)
CreateOrderTicket: Establishes a order ticket.
Parameters:
license_id (string): Provide your license index
symbol (string): Symbol on which to execute the trade
action (string): Execution method of the trade : "MRKT" or "PENDING"
order_type (string): Direction type of the order: "BUY" or "SELL"
trade_type (string): Is it a "SPREAD" trade or a "SINGLE" symbol execution?
size (float): Size of the trade, in units
price (float): If the order is pending you must specify the execution price
tp (float): (Optional) Take profit of the order [price, ticks, percent]
sl (float): (Optional) Stop loss of the order [price, ticks, percent]
risk (float): Percent to risk for the trade, if size not specified
trailPrice (float): (Optional) Price at which trailing stop is starting
trailOffset (float): (Optional) Amount to trail by [percent, ticks]
Returns: Return Order string
Generates Json objects for webhook messages.
GenerateOT(license_id, symbol, action, order_type, trade_type, size, price, tp, sl, risk, trailPrice, trailOffset)
CreateOrderTicket: Establishes a order ticket.
Parameters:
license_id (string): Provide your license index
symbol (string): Symbol on which to execute the trade
action (string): Execution method of the trade : "MRKT" or "PENDING"
order_type (string): Direction type of the order: "BUY" or "SELL"
trade_type (string): Is it a "SPREAD" trade or a "SINGLE" symbol execution?
size (float): Size of the trade, in units
price (float): If the order is pending you must specify the execution price
tp (float): (Optional) Take profit of the order [price, ticks, percent]
sl (float): (Optional) Stop loss of the order [price, ticks, percent]
risk (float): Percent to risk for the trade, if size not specified
trailPrice (float): (Optional) Price at which trailing stop is starting
trailOffset (float): (Optional) Amount to trail by [percent, ticks]
Returns: Return Order string
Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
Pinetrader.io
pinetrader.io
pinetrader.io
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
Pinetrader.io
pinetrader.io
pinetrader.io
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。