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

Pine腳本庫

在真正的TradingView精神中,作者將這段Pine程式碼發佈為開源程式庫,以便我們社群的其他Pine程式設計師可以重複使用它。請向作者致敬!您可以私下使用這個函式庫,或在其他開源出版品中使用,但在出版物中再次使用這段程式碼將受到網站規則的約束。

免責聲明