TradingWolf

TradingWolfLibary

TradingWolf Zaktualizowano   
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
Informacje o Wersji:
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
Informacje o Wersji:
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
Informacje o Wersji:
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
Informacje o Wersji:
v5
Informacje o Wersji:
v6
Informacje o Wersji:
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
Informacje o Wersji:
v8 changed if statement bug

Biblioteka Pine

Działając zgodnie z prawdziwym duchem TradingView, autor opublikował ten kod Pine jako bibliotekę o otwartym kodzie źródłowym, aby inni programiści Pine z naszej społeczności mogli go ponownie wykorzystać. Brawa dla niego! Możesz korzystać z tej biblioteki prywatnie lub w innych publikacjach typu open source, ale ponowne wykorzystanie tego kodu w publikacji podlega Regulaminowi.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz skorzystać z tej biblioteki?

Skopiuj poniższy wiersz i wklej go w swoim skrypcie.