PINE LIBRARY

Thuvien_publish

Updated
Library "Thuvien_publish"
Thư viện build Strategy

entry_volume_func(risk, entry, sl)
  Hàm tính khối lượng vào lệnh
  Parameters:
    risk (float)
    entry (float)
    sl (float)
  Returns: entry_volume: trả về khối lượng cần vào

tp_sl_func(sl, entry, rr)
  Tính TP/SL theo RR cho trước
  Parameters:
    sl (float)
    entry (float)
    rr (float)
  Returns: Trả về giá trị Take profit
Release Notes
v2

Added:
entry_fixed_vol_func(risk, entry, sl)
  Hàm tính khối lượng cố định
  Parameters:
    risk (float)
    entry (float)
    sl (float)
  Returns: entry_volume: trả về khối lượng cần vào
statistics

Pine library

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.

Disclaimer