leap-forward

HelperTA

Library "HelperTA"

This library contains useful technical indicators that I use regularly in my charts.

`stockRSI` is not mine, but included because used often and referenced by internal functions.

`DCO` is a normalisation of the donchian channels; the price relative to the donchian channels, on a range.

`MarketCycle` is a weighted aggregate of RSI, Stochastic RSI & DCO (demo on the chart)


stockRSI(src, K, D, rsiPeriod, stochPeriod)
  stockRSI
  Parameters:
    src (float)
    K (int)
    D (int)
    rsiPeriod (simple int)
    stochPeriod (int)
  Returns: <k, d>

DCO(price, donchianPeriod, smaPeriod)
  DCO
  Parameters:
    price (float)
    donchianPeriod (int)
    smaPeriod (int)
  Returns: <DCO, s>

MarketCycle(donchianPrice, rsiPrice, srsiPrice, donchianPeriod, donchianSmoothing, rsiPeriod, rsiSmoothing, srsiPeriod, srsiSmoothing, srsiK, srsiD, rsiWeight, srsiWeight, dcoWeight)
  MarketCycle
  Parameters:
    donchianPrice (float)
    rsiPrice (float)
    srsiPrice (float)
    donchianPeriod (simple int)
    donchianSmoothing (simple int)
    rsiPeriod (simple int)
    rsiSmoothing (int)
    srsiPeriod (simple int)
    srsiSmoothing (simple int)
    srsiK (simple int)
    srsiD (simple int)
    rsiWeight (simple float)
    srsiWeight (simple float)
    dcoWeight (simple float)
  Returns: <aggr>

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.