PINE LIBRARY

KwakPineHelper

Library "KwakPineHelper"
TODO: add library description here

fun(x)
  TODO: add function description here
  Parameters:
    x (float): TODO: add parameter x description here
  Returns: TODO: add what function returns

all_opentrades_size()
  get all opentrades size
  Returns: (float) size

recent_opentrade_profit()
  get recent opentrade profit
  Returns: (float) profit

all_opentrades_profit()
  get all opentrades profit
  Returns: (float) profit

recent_closedtrade_profit()
  get recent closedtrade profit
  Returns: (float) profit

recent_opentrade_max_runup()
  get recent opentrade max runup
  Returns: (float) runup

recent_closedtrade_max_runup()
  get recent closedtrade max runup
  Returns: (float) runup

recent_opentrade_max_drawdown()
  get recent opentrade maxdrawdown
  Returns: (float) mdd

recent_closedtrade_max_drawdown()
  get recent closedtrade maxdrawdown
  Returns: (float) mdd

max_open_trades_drawdown()
  get max open trades drawdown
  Returns: (float) mdd

recent_opentrade_commission()
  get recent opentrade commission
  Returns: (float) commission

recent_closedtrade_commission()
  get recent closedtrade commission
  Returns: (float) commission

qty_by_percent_of_equity(percent)
  get qty by percent of equtiy
  Parameters:
    percent (float): (series float) percent that you want to set
  Returns: (float) quantity

qty_by_percent_of_position_size(percent)
  get size by percent of position size
  Parameters:
    percent (float): (series float) percent that you want to set
  Returns: (float) size

is_day_change()
  get bool change of day
  Returns: (bool) day is change or not

is_in_trade(numberOfBars)
  get bool using number of bars
  Parameters:
    numberOfBars (int)
  Returns: (bool) allowedToTrade

api_msg_system(chat_id, message)
  Parameters:
    chat_id (string)
    message (string)

is_first_day()
  Check if today is the first day
  Returns: (bool) true if today is the first day, false otherwise

is_last_day()
  Check if today is the last day
  Returns: (bool) true if today is the last day, false otherwise

is_entry()
  Check if trade is open
  Returns: (bool) true if trade is open, false otherwise

is_close()
  Check if trade is closed
  Returns: (bool) true if trade is closed, false otherwise

is_win()
  Check if trade is win
  Returns: (bool) true if trade is win, false otherwise

is_loss()
  Check if trade is loss
  Returns: (bool) true if trade is loss, false otherwise
debuggingMarket Geometry

Pine腳本庫

在真正的TradingView精神中,作者將這段Pine程式碼發佈為開源程式庫,以便我們社群的其他Pine程式設計師可以重複使用它。請向作者致敬!您可以私下使用這個函式庫,或在其他開源出版品中使用,但在出版物中再次使用這段程式碼將受到網站規則的約束。

免責聲明