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

Bibliothèque Pine

Dans le plus pur esprit TradingView, l'auteur a publié ce code Pine en tant que bibliothèque open-source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur! Vous pouvez utiliser cette bibliothèque en privé ou dans d'autres publications à code source ouvert, mais la réutilisation de ce code dans une publication est régie par nos Règles.

Clause de non-responsabilité