MightyZinger

Chikou

MightyZinger 업데이트됨   
Library "Chikou"
This library contains Chikou Filter function to enhances functionality of Chikou-Span from Ichimoku Cloud using a simple trend filter.
Chikou is basically close value of ticker offset to close and it is a good for indicating if close value has crossed potential Support/Resistance zone from past. Chikou is usually used with 26 period.
Chikou filter uses a lookback length calculated from provided lookback percentage and checks if trend was bullish or bearish within that lookback period.
Bullish : Trend is bullish if Chikou span is above high values of all candles within defined lookback period. Bull color shows bullish trend .
Bearish: Trend is bearish if Chikou span is below low values of all candles within defined lookback period. This is indicated by Bearish color.
Reversal / Choppiness : Reversal color indicates that Chikou are swinging around candles within defined lookback period which is an indication of consolidation or trend reversal.

chikou(src, len, perc, _high, _low, bull_col, bear_col, r_col) Chikou Filter for Ichimoku Cloud with Color and Signal Output
  Parameters:
    src: Price Source (better to use (OHLC4+high+low/3 instead of default close value)
    len: Chikou Legth (displaced source value)
    perc: Percentage lookback period for Chikou Filter with defined how much candels of total length should be considered for backward filteration
    _high: Ticker High Value
    _low: Ticker Low Value
    bull_col: Color to be returned if source value is greater than all candels within provided lookback percentage.
    bear_col: Color to be returned if source value is lower than all candels within provided lookback percentage.
    r_col: Color to be returned if source value is swinging around candles within defined lookback period which is an indication of consolidation or trend reversal.
  Returns: Color based on trend. 'bull_col' if trend is bullish, 'bear_col' if trend is bearish. 'r_col' if no prominent trend. Integer Signal is also returned as 1 for Bullish, -1 for Bearish and 0 for no prominent trend.
릴리즈 노트:
v2 : Updated and simplified function using ta.highest and ta.lowest
릴리즈 노트:
v3

Updated: Erased lookback percentage and let the function work only based on Chikou (displaced Source) length with same results as before

파인 라이브러리

트레이딩뷰 정신에 따라 오써는 이 파인 코드를 오픈 소스 라이브러리로 퍼블리쉬하여 당사 커뮤니티의 다른 파인 프로그래머들이 쓸 수 있도록 하였습니다. 오써에게 찬사를! 여러분은 이 라이브러리를 프라이빗 또는 오픈 소스 퍼블리케이션에 쓸 수 있지만 퍼블리케이션에 재사용은 하우스룰을 따릅니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

이 라이브러리를 쓰시겠습니까?

텍스트를 클립보드에 카피한 뒤 님의 스크립트에 붙여 넣기.