PINE LIBRARY

CandlestickPatterns

Library "CandlestickPatterns"

zigzag(_low, _high, depth, deviation, backstep)
  Parameters:
    _low (float)
    _high (float)
    depth (int)
    deviation (int)
    backstep (int)

getTrend(trendType, currentClose, zz_downtrend, zz_uptrend, ema14, ema28)
  Parameters:
    trendType (string)
    currentClose (float)
    zz_downtrend (bool)
    zz_uptrend (bool)
    ema14 (float)
    ema28 (float)

isInside(currentHigh, currentLow, currentClose, currentOpen, prevHigh, prevLow)
  Parameters:
    currentHigh (float)
    currentLow (float)
    currentClose (float)
    currentOpen (float)
    prevHigh (float)
    prevLow (float)

checkMorningStar(open0, high0, low0, close0, open1, high1, low1, close1, open2, high2, low2, close2, innerCandleThreshold, closingMinThreshold, closingMaxThreshold, useDojiFilter, dojiSize, downTrend)
  Parameters:
    open0 (float)
    high0 (float)
    low0 (float)
    close0 (float)
    open1 (float)
    high1 (float)
    low1 (float)
    close1 (float)
    open2 (float)
    high2 (float)
    low2 (float)
    close2 (float)
    innerCandleThreshold (float)
    closingMinThreshold (float)
    closingMaxThreshold (float)
    useDojiFilter (bool)
    dojiSize (float)
    downTrend (bool)

checkEveningStar(open0, high0, low0, close0, open1, high1, low1, close1, open2, high2, low2, close2, innerCandleThreshold, closingMinThreshold, closingMaxThreshold, useDojiFilter, dojiSize, upTrend)
  Parameters:
    open0 (float)
    high0 (float)
    low0 (float)
    close0 (float)
    open1 (float)
    high1 (float)
    low1 (float)
    close1 (float)
    open2 (float)
    high2 (float)
    low2 (float)
    close2 (float)
    innerCandleThreshold (float)
    closingMinThreshold (float)
    closingMaxThreshold (float)
    useDojiFilter (bool)
    dojiSize (float)
    upTrend (bool)

checkHammerPattern(open, high, low, close, bodyAvg, shadowFactor, downTrend)
  Parameters:
    open (float)
    high (float)
    low (float)
    close (float)
    bodyAvg (float)
    shadowFactor (float)
    downTrend (bool)

checkInvertedHammerPattern(open, high, low, close, bodyAvg, shadowFactor, downTrend)
  Parameters:
    open (float)
    high (float)
    low (float)
    close (float)
    bodyAvg (float)
    shadowFactor (float)
    downTrend (bool)

checkHangingManPattern(open, high, low, close, bodyAvg, shadowFactor, upTrend)
  Parameters:
    open (float)
    high (float)
    low (float)
    close (float)
    bodyAvg (float)
    shadowFactor (float)
    upTrend (bool)

checkShootingStarPattern(open, high, low, close, bodyAvg, shadowFactor, upTrend)
  Parameters:
    open (float)
    high (float)
    low (float)
    close (float)
    bodyAvg (float)
    shadowFactor (float)
    upTrend (bool)

checkLevels(high0, high1, high2, low0, low1, low2, lookbackPeriod)
  Parameters:
    high0 (float)
    high1 (float)
    high2 (float)
    low0 (float)
    low1 (float)
    low2 (float)
    lookbackPeriod (int)
techindicator

Libreria Pine

In pieno spirito TradingView, l'autore ha pubblicato questo codice Pine come libreria open-source in modo che altri programmatori Pine della nostra comunità possano riutilizzarlo. Un saluto all'autore! È possibile utilizzare questa libreria privatamente o in altre pubblicazioni open-source, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento.

Declinazione di responsabilità