mickes

Touched

mickes 업데이트됨   
Library "Touched"

Breakout(zone, lookback)
  Tells if the zone has been broken on the current bar.
  Parameters:
    zone (Zone): The definitiin of the zone.
    lookback (int): How many bars to look back.
  Returns: a Touch object that tells if the zone has been broken up or down.

FalseBreakout(zone, lookback)
  Tells if the zone has a false breakout on the current bar.
  Parameters:
    zone (Zone): The definitiin of the zone.
    lookback (int): How many bars to look back.
  Returns: a Touch object that tells if the zone has had a false breakout up or down.

Retest(zone, lookback)
  Tells if the zone has been retested on the current bar.
  Parameters:
    zone (Zone): The definitiin of the zone.
    lookback (int): How many bars to look back.
  Returns: a Touch object that tells if the zone has been retested up or down.

Zone
  Fields:
    High (series__float)
    Low (series__float)
    BaseTime (series__integer)

Touch
  Fields:
    Up (series__bool)
    Down (series__bool)
릴리즈 노트:
Remove zone creation time, not working at the moment.
릴리즈 노트:
Re-add base time creation for the zone, used to stop looking for touches beyond the base creation.
릴리즈 노트:
Fix bug in BaseTime comparing if bar time is higher than that, now checks if it's lower.
릴리즈 노트:
- add 'Length' to 'Touch' type to let the user know how long the touch was
릴리즈 노트:
- A touch is not considered a retest if it reached above/below the zone.
릴리즈 노트:
- Add 'ExtremeIndexBack' to 'Touch' type that is set for false breakouts and retest for the highest/lowest price bar
릴리즈 노트:
- Exit false breakout if a previous false breakout was found
릴리즈 노트:
- Don't exit 'false breakout ' detection if the loop is on the first iteration
파인 라이브러리

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

면책사항

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

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

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