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程序员可以重复使用它。向作者致敬!您可以私下或在其它开源出版物中使用此脚本库,但在出版物中重复使用此代码受网站规则约束。

免责声明