PINE LIBRARY
已更新 POA

Library "POA"
This library is a client script for making a webhook signal formatted string to POABOT server.
entry_message(password, percent, leverage, kis_number)
Create a entry message for POABOT
Parameters:
password: (string) [Required] The password of your bot.
percent: (float) [Optional] The percent for entry based on your wallet balance.
leverage: (int) [Optional] The leverage of entry. If not set, your levereage doesn't change.
kis_number: (int) [Optional] The number of koreainvestment account.
Returns: (string) A json formatted string for webhook message.
close_message(password, percent, kis_number)
Create a close message for POABOT
Parameters:
password: (string) [Required] The password of your bot.
percent: (float) [Optional] The percent for close based on your wallet balance.
kis_number: (int) [Optional] The number of koreainvestment account.
Returns: (string) A json formatted string for webhook message.
exit_message(password, percent)
Create a exit message for POABOT
Parameters:
password: (string) [Required] The password of your bot.
percent: (float) [Optional] The percent for exit based on your wallet balance.
Returns: (string) A json formatted string for webhook message.
in_trade(start_time, end_time)
Create a trade start line
Parameters:
start_time: (int) [Required] The start of time.
end_time: (int) [Required] The end of time.
Returns: (bool) Get bool for trade based on time range.
This library is a client script for making a webhook signal formatted string to POABOT server.
entry_message(password, percent, leverage, kis_number)
Create a entry message for POABOT
Parameters:
password: (string) [Required] The password of your bot.
percent: (float) [Optional] The percent for entry based on your wallet balance.
leverage: (int) [Optional] The leverage of entry. If not set, your levereage doesn't change.
kis_number: (int) [Optional] The number of koreainvestment account.
Returns: (string) A json formatted string for webhook message.
close_message(password, percent, kis_number)
Create a close message for POABOT
Parameters:
password: (string) [Required] The password of your bot.
percent: (float) [Optional] The percent for close based on your wallet balance.
kis_number: (int) [Optional] The number of koreainvestment account.
Returns: (string) A json formatted string for webhook message.
exit_message(password, percent)
Create a exit message for POABOT
Parameters:
password: (string) [Required] The password of your bot.
percent: (float) [Optional] The percent for exit based on your wallet balance.
Returns: (string) A json formatted string for webhook message.
in_trade(start_time, end_time)
Create a trade start line
Parameters:
start_time: (int) [Required] The start of time.
end_time: (int) [Required] The end of time.
Returns: (bool) Get bool for trade based on time range.
發行說明
v2업데이트됨
entry_message(password, percent, leverage, kis_number, exchange, base, quote, side, qty)
Create a entry message for POABOT
Parameters:
password: (string) [Required] The password of your bot.
percent: (float) [Optional] The percent for entry based on your wallet balance.
leverage: (int) [Optional] The leverage of entry. If not set, your levereage doesn't change.
kis_number: (int) [Optional] The number of koreainvestment account.
exchange
base
quote
side
qty
Returns: (string) A json formatted string for webhook message.
close_message(password, percent, kis_number, exchange, base, quote, side, qty)
Create a close message for POABOT
Parameters:
password: (string) [Required] The password of your bot.
percent: (float) [Optional] The percent for close based on your wallet balance.
kis_number: (int) [Optional] The number of koreainvestment account.
exchange
base
quote
side
qty
Returns: (string) A json formatted string for webhook message.
exit_message(password, percent, kis_number, exchange, base, quote, side, qty)
Create a exit message for POABOT
Parameters:
password: (string) [Required] The password of your bot.
percent: (float) [Optional] The percent for exit based on your wallet balance.
kis_number
exchange
base
quote
side
qty
Returns: (string) A json formatted string for webhook message.
發行說明
v3add manual_message function
manual_message(password, exchange, base, quote, side, qty, price, percent, leverage, kis_number, order_name)
Create a manual message for POABOT
Parameters:
password: (string) [Required] The password of your bot.
exchange: (string) [Required] The exchange
base: (string) [Required] The base
quote: (string) [Required] The quote of order message
side: (string) [Required] The side of order messsage
qty: (float) [Required] The qty of order message
price: (float) [Optional] The price of order message
percent: (float) [Optional] The percent for order based on your wallet balance.
leverage: (int) [Optional] The leverage of entry. If not set, your levereage doesn't change.
kis_number: (int) [Optional] The number of koreainvestment account.
order_name: (string) [Optional] The name of order message
Returns: (string) A json formatted string for webhook message.
update
entry_message(password, percent, leverage, kis_number)
Create a entry message for POABOT
Parameters:
password: (string) [Required] The password of your bot.
percent: (float) [Optional] The percent for entry based on your wallet balance.
leverage: (int) [Optional] The leverage of entry. If not set, your levereage doesn't change.
kis_number: (int) [Optional] The number of koreainvestment account.
Returns: (string) A json formatted string for webhook message.
close_message(password, percent, kis_number)
Create a close message for POABOT
Parameters:
password: (string) [Required] The password of your bot.
percent: (float) [Optional] The percent for close based on your wallet balance.
kis_number: (int) [Optional] The number of koreainvestment account.
Returns: (string) A json formatted string for webhook message.
exit_message(password, percent, kis_number)
Create a exit message for POABOT
Parameters:
password: (string) [Required] The password of your bot.
percent: (float) [Optional] The percent for exit based on your wallet balance.
kis_number
Returns: (string) A json formatted string for webhook message.
發行說明
v4update: qty param is optional
manual_message(password, exchange, base, quote, side, qty, price, percent, leverage, kis_number, order_name)
Create a manual message for POABOT
Parameters:
password: (string) [Required] The password of your bot.
exchange: (string) [Required] The exchange
base: (string) [Required] The base
quote: (string) [Required] The quote of order message
side: (string) [Required] The side of order messsage
qty: (float) [Optional] The qty of order message
price: (float) [Optional] The price of order message
percent: (float) [Optional] The percent for order based on your wallet balance.
leverage: (int) [Optional] The leverage of entry. If not set, your levereage doesn't change.
kis_number: (int) [Optional] The number of koreainvestment account.
order_name: (string) [Optional] The name of order message
Returns: (string) A json formatted string for webhook message.
in_trade(start_time, end_time, overlay, min, max)
Create a trade start line
Parameters:
start_time: (int) [Required] The start of time.
end_time: (int) [Required] The end of time.
overlay: (bool) [Optional] The overlay of line
min: (float) [Optional] The min value of overlay range
max: (float) [Optional] The max value of overlay range
Returns: (bool) Get bool for trade based on time range.
發行說明
v5, Update in_trade function to work in non-overlay modein_trade(start_time, end_time)
Create a trade start line
Parameters:
start_time: (int) [Required] The start of time.
end_time: (int) [Required] The end of time.
Returns: (bool) Get bool for trade based on time range.
發行說明
v6BINANCE PERPETUAL FUTURES prefix change (PERP -> .P)
發行說明
v7, add strategy wrapper.發行說明
V8, update entry/order method發行說明
v9, update entry/order method發行說明
v10업데이트됨
entry_message(password, percent, leverage, margin_mode, kis_number)
Create a entry message for POABOT
Parameters:
password (string): (string) [Required] The password of your bot.
percent (float): (float) [Optional] The percent for entry based on your wallet balance.
leverage (int): (int) [Optional] The leverage of entry. If not set, your levereage doesn't change.
margin_mode (string): (string) [Optional] The margin mode for trade(only for OKX). "cross" or "isolated"
kis_number (int): (int) [Optional] The number of koreainvestment account. Default 1
Returns: (string) A json formatted string for webhook message.
order_message(password, percent, leverage, margin_mode, kis_number)
Create a order message for POABOT
Parameters:
password (string): (string) [Required] The password of your bot.
percent (float): (float) [Optional] The percent for entry based on your wallet balance.
leverage (int): (int) [Optional] The leverage of entry. If not set, your levereage doesn't change.
margin_mode (string): (string) [Optional] The margin mode for trade(only for OKX). "cross" or "isolated"
kis_number (int): (int) [Optional] The number of koreainvestment account. Default 1
Returns: (string) A json formatted string for webhook message.
close_message(password, percent, margin_mode, kis_number)
Create a close message for POABOT
Parameters:
password (string): (string) [Required] The password of your bot.
percent (float): (float) [Optional] The percent for close based on your wallet balance.
margin_mode (string): (string) [Optional] The margin mode for trade(only for OKX). "cross" or "isolated"
kis_number (int): (int) [Optional] The number of koreainvestment account. Default 1
Returns: (string) A json formatted string for webhook message.
exit_message(password, percent, margin_mode, kis_number)
Create a exit message for POABOT
Parameters:
password (string): (string) [Required] The password of your bot.
percent (float): (float) [Optional] The percent for exit based on your wallet balance.
margin_mode (string): (string) [Optional] The margin mode for trade(only for OKX). "cross" or "isolated"
kis_number (int): (int) [Optional] The number of koreainvestment account. Default 1
Returns: (string) A json formatted string for webhook message.
manual_message(password, exchange, base, quote, side, qty, price, percent, leverage, margin_mode, kis_number, order_name)
Create a manual message for POABOT
Parameters:
password (string): (string) [Required] The password of your bot.
exchange (string): (string) [Required] The exchange
base (string): (string) [Required] The base
quote (string): (string) [Required] The quote of order message
side (string): (string) [Required] The side of order messsage
qty (float): (float) [Optional] The qty of order message
price (float): (float) [Optional] The price of order message
percent (float): (float) [Optional] The percent for order based on your wallet balance.
leverage (int): (int) [Optional] The leverage of entry. If not set, your levereage doesn't change.
margin_mode (string): (string) [Optional] The margin mode for trade(only for OKX). "cross" or "isolated"
kis_number (int): (int) [Optional] The number of koreainvestment account.
order_name (string): (string) [Optional] The name of order message
Returns: (string) A json formatted string for webhook message.
real_qty(qty, precision, leverage, contract_size)
Get exchange specific real qty
Parameters:
qty (float): (float) [Optional] qty
precision (float): (float) [Optional] precision
leverage (int): (int) [Optional] leverage
contract_size (float): (float) [Optional] contract_size
Returns: (float) exchange specific qty.
method set(this, password, start_time, end_time, leverage, margin_mode, contract_size, kis_number, entry_percent, close_percent, exit_percent, fixed_qty, fixed_cash, real, auto_alert_message, hide_trade_line)
Set bot object.
Namespace types: bot
Parameters:
this (bot)
password (string): (string) [Optional] password for poabot.
start_time (int): (int) [Optional] start_time timestamp.
end_time (int): (int) [Optional] end_time timestamp.
leverage (int): (int) [Optional] leverage.
margin_mode (string): (string) [Optional] The margin mode for trade(only for OKX). "cross" or "isolated"
contract_size (float)
kis_number (int): (int) [Optional] kis_number for poabot.
entry_percent (float): (float) [Optional] entry_percent for poabot.
close_percent (float): (float) [Optional] close_percent for poabot.
exit_percent (float): (float) [Optional] exit_percent for poabot.
fixed_qty (float): (float) [Optional] fixed qty.
fixed_cash (float): (float) [Optional] fixed cash.
real (bool): (bool) [Optional] convert qty for exchange specific.
auto_alert_message (bool): (bool) [Optional] convert alert_message for exchange specific.
hide_trade_line (bool): (bool) [Optional] if true, Hide trade line. Default false.
Returns: (void)
發行說明
v11fix oca order script
發行說明
v12Support default_qty_type and default_qty_value
發行說明
v13The part regarding the decimal point limitation of quantities has been improved in the real_qty() function.
發行說明
v141. Now supports close_all() method.
2. Allow you to set exchange, base, and quote manually when placing an order.
3. Fix the default value of kis_number to 1.
發行說明
v15Remove the undercapitalization check logic
發行說明
v161. Remove 'when'
2. support pine script version 6
發行說明
v17Remove the entry capital management.
Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
알고리즘 트레이딩, 파인스크립트, 자동매매를 다루고 있습니다
[파인스크립트 무료강의]
gojdk.com/pinescript-start
[파인스크립트 with 자동매매]
gojdk.com/pinescript-tradinghook
[유튜브]
gojdk.com/youtube
[디스코드]
gojdk.com/discord
[파인스크립트 무료강의]
gojdk.com/pinescript-start
[파인스크립트 with 자동매매]
gojdk.com/pinescript-tradinghook
[유튜브]
gojdk.com/youtube
[디스코드]
gojdk.com/discord
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
알고리즘 트레이딩, 파인스크립트, 자동매매를 다루고 있습니다
[파인스크립트 무료강의]
gojdk.com/pinescript-start
[파인스크립트 with 자동매매]
gojdk.com/pinescript-tradinghook
[유튜브]
gojdk.com/youtube
[디스코드]
gojdk.com/discord
[파인스크립트 무료강의]
gojdk.com/pinescript-start
[파인스크립트 with 자동매매]
gojdk.com/pinescript-tradinghook
[유튜브]
gojdk.com/youtube
[디스코드]
gojdk.com/discord
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。