SolCollector

Hikkake Hunter

SolCollector ที่อัปเดต:   
Simple script for finding Hikkake patterns in charts.

This script will:
- Identify bullish / bearish variants of the Hikkake pattern.
- Allow the user to change the color scheme for the bullish / bearish variants.
- Allow the user to specify which Hikkake patterns will be recognized by this hunter (specifically, allowing which of the three candles after the pattern appears will confirm the pattern).
เอกสารเผยแพร่:
UPDATED VERSION:

I took issue with how Hikkakes were confirmed in the original script and have reworked this to identify Hikkakes only by the candle that confirms them.

Added Features: Hikkakes will now appear unconfirmed and will change color from the unconfirmed color to either the selected bullish or bearish color given by the user, and an additional switch has been added (along with input color) to reveal Hikkakes that had not been confirmed.

(Note: Because of this script runs from left-to-right, if non-confirmed Hikkakes are revealed, then there is the potential for repainting of a portion of a confirmed Hikkake. Turning off the non-confirmed recognition will prevent partial repainting.)
เอกสารเผยแพร่:
Numerous changes added. Fixed a possible bug where Bearish Hikkakes confirmed by the first candle were recognized as non-confirmed.

User may now use the same diagnostic settings I had used to determine if the script was operating as intended. The first of three diagnostic settings included is a counter which keeps track of all of the different kinds of Hikkakes that have appeared (separated by ones confirmed on the first, second and third candles) as well as the total counts of non-confirmed (both bullish, bearish and total non-confirmed) and a total of all Hikkake patterns that have appeared. The second diagnostic setting will plot the global variables used in determining the structure of the patterns and if any of them actually trigger a recognizable Hikkake pattern (this was more aesthetic than anything but still serves an important purpose in determining that the logic is running the way I had intended). And the final diagnostic tool was one to show the value of certain booleans that are triggered whenever a confirmed pattern appears (this was for testing out alerts).

Labels have been added, as well as a floating point input that the user may adjust to move the labels closer or further away from the calculated price points these labels are generated at.

Alerts have also been added, two for unconfirmed patterns and two for confirmed patterns (bullish/bearish variants of alerts).

Additional comment polishing has been done, some typos fixed and notes have been added in a few areas.
เอกสารเผยแพร่:
Final Comment polishing.
เอกสารเผยแพร่:
Near-Final version (Suggestions for changes welcome)

Diagnostic section has been moved to a different part of the script (as well as all of the code associated with diagnostics). Small functionality change, turning on diagnostics no longer disables the labels by default, these will have to be turned off manually (recommended).

Additional Diagnostic settings have been added:
The ability to determine profit/loss after a specified number of candles, and statistical analysis can be done on the user-specified set of Hikkake pattern(s) P/L returns.

The user can specify which returns to conduct statistical analysis on by however many candlesticks were required to confirm the pattern, as well as a combination of all bullish confirmations, all bearish confirmations, and even non-confirmed pattern returns. The values returned include: min, max, median, mode, average, size of the set, standard deviation, and sum (may be unnecessary, but still provided regardless).

I recommend for those using the diagnostic tools to use the 'Data Window' provided by TradingView, as all plots have titles that correspond to the values they use.

Tool-tips have been updated, and additional code commenting has been added/polished.

The following are examples of the diagnostic tools provided in this script:

Hikkake Counter:

High/Low Plots:

Alert Bool Testing:

P/L Plot:

P/L Stats:
เอกสารเผยแพร่:
Revised deprecated function definitions.
เอกสารเผยแพร่:
Revised deprecated function definitions (x2)
เอกสารเผยแพร่:
Release update:

Minor code refactoring to maintain consistency with other scripts I've been working on related to candlestick patterns.

No real functionality change.

Bug noted: issues with repainting when multiple unconfirmed patterns are near each other.
เอกสารเผยแพร่:
Final comment polishing
เอกสารเผยแพร่:
Final comment polishing (x2).

This should be the near final-version of this program, will look into repainting issues at another time. Suggestions welcomed.
เอกสารเผยแพร่:
Spell checking, I had an older version get mixed up in the newer ones somehow and prior spelling errors I had fixed have reappeared.
เอกสารเผยแพร่:
House-Rules update
เอกสารเผยแพร่:
Some refactoring/grouping of inputs into their proper sets for the settings screen.

Most changes do not affect how the script itself operates and are purely visual.
เอกสารเผยแพร่:
House Rules #2 update: links removed

Also some changes made to the statistics/diagnostics methods and includes new helper functions for handling conditional pushes to arrays.
เอกสารเผยแพร่:
ATTENTION USERS: This script is being deprecated as of 04/01/2023

Please migrate to the 2.0 version here:

I build open-source indicators, help support my work:

BTC: 3GJFVgbxWLZjbupSEDifqouKSw1DsQytDP
ETH/USDC: 0x8a9915B9281F72C08f0274049028bdD89cF76Fd3
LTC: MFX9qvAvMvz9rRC3o9QchzH1rP4woGSmv2
สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?