TradingWolf

TradingWolfLibary

TradingWolf Cập nhật   
Library "TradingWolfLibary"

getMA(int, string)
  Gets a Moving Average based on type
  Parameters:
    int: length The MA period
    string: maType The type of MA
  Returns: A moving average with the given parameters

minStop(float, simple, float, string)
  Calculates and returns Minimum stop loss
  Parameters:
    float: entry price (Close if calculating on the entry candle)
    simple: int Calculate how many bars back to look at swings
    float: Minimum Stop Loss allowed (Should be x 0.01) if input
    string: Direciton of trade either "Long" or "Short"
  Returns: Stop Loss Value
Phát hành các Ghi chú:
v2

Added:
minmaxStop(float, simple, float, float, string)
  Calculates and returns Minimum/Maximum stop loss
  Parameters:
    float: entry price (Close if calculating on the entry candle)
    simple: int Calculate how many bars back to look at swings
    float: Minimum Stop Loss allowed (Should be x 0.01) if input
    float: Maximum Stop Loss allowed (Should be x 0.01) if input
    string: Direciton of trade either "Long" or "Short"
  Returns: Stop Loss Value
Phát hành các Ghi chú:
v3

Updated:
minmaxStop(float, simple, float, float, string)
  Calculates and returns Minimum/Maximum stop loss
  Parameters:
    float: entry price (Close if calculating on the entry candle)
    simple: int Calculate how many bars back to look at swings
    float: Minimum Stop Loss allowed (Should be x 0.01) if input
    float: Maximum Stop Loss allowed (Should be x 0.01) if input
    string: Direciton of trade either "Long" or "Short"
  Returns: Stop Loss Value
Phát hành các Ghi chú:
v4

Added:
tpCalc(float, float, float, string)
  Calculates the take profit value
  Parameters:
    float: entry price (Close if calculating on the entry candle)
    float: stop would be the variable calculated just before your TP, you can use the minmaxStop
    float: ratio is a reward multiplier
    string: direction is the direction of the trade
Phát hành các Ghi chú:
v5
Phát hành các Ghi chú:
v6
Phát hành các Ghi chú:
v7

Added:
atrStop(_entry, _risk, _direction)
  Calculates the Stop Loss using ATR
  Parameters:
    _entry
    _risk
    _direction
  Returns: Take proit value

atrTake(_entry, _reward, _direction)
  Calculates the Take profitusing ATR
  Parameters:
    _entry
    _reward
    _direction
  Returns: Take proit value
Phát hành các Ghi chú:
v8 changed if statement bug

Thư viện Pine

Với tinh thần TradingView thực sự, tác giả đã xuất bản mã Pine này như một thư viện mã nguồn mở để các lập trình viên Pine khác từ cộng đồng của chúng tôi có thể sử dụng lại nó. Chúc mừng tác giả! Bạn có thể sử dụng thư viện này một cách riêng tư hoặc trong các ấn phẩm mã nguồn mở khác, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy chung.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng thư viện này?

Sao chép văn bản vào khay nhớ tạm và dán nó vào tập lệnh của bạn.