OPEN-SOURCE SCRIPT

흑트2 시그널

Signal Description
This strategy utilizes double golden crosses and dead crosses of the MACD (Moving Average Convergence Divergence). When a second golden cross or dead cross meeting the specified conditions occurs, a signal is generated.

Long Position
1. The MACD must form two golden crosses below the zero line.
2. The first golden cross must be lower than the second golden cross.

Short Position
1. The MACD must form two dead crosses above the zero line.
2. The first dead cross must be higher than the second dead cross.

Position Entry
* after confirming a signal, wait for confirmation, such as breaking a resistance level in the desired direction on the observed timeframe.
* Enter the position at the breakout point when such confirmation occurs.

Filtering Options
To reduce noise, several filtering functions have been added. Further research may be needed.
1. Minimum Bar Count Between Golden/Dead Crosses (default = 5):
* Sets the minimum number of bars between crosses to ignore signals in sideways markets with frequent crosses due to small fluctuations.
2. Maximum Bar Count Between Golden/Dead Crosses (default = 30):
* Considers crosses too far apart as noise and ignores them.
3. Percentage Change Between Golden/Dead Crosses (default = 1%):
* Filters out signals where the percentage difference between the first and second cross is too small, considering them as noise.
4. Candle Close Comparison:
* When a golden cross occurs, the price should be declining.
* When a dead cross occurs, the price should be rising.
* In other words, filters signals to only consider MACD divergence.
5. RSI Filter:
* Displays long/short signals only when the RSI is above (or below) a specified level.

시그널 설명
맥디(macd)의 더블 골든크로스와 데드크로스를 활용한 기법. 조건에 맞는 두번재 데드크로스나 골든 크로스가 발생하였을때 두번째 골크나 데크에서 시그널 발생.


macd가 제로라인 아래에서 골크를 두번생성.
첫번째 골크가 두번째 골크보다 아래에 있어야 함.


macd가 제로라인 위에서 데드를 두번생성.
첫번째 데크가 두번째 데크보다 위에 있어야 함.

포지션 진입.
시그널이 발생하고 원하는 방향으로의 보는 시간프레임에서의 저항을 돌파하는 흐름이 나올때 돌파지점에서 포지션 진입.

필터링 : 노이즈 제거용으로 몇가지 필터링 기능을 추가함. 더 연구가 필요.

1. 골크/데크사이 최소바 개수(default=5) : 골크/데크간 최소 바의 개수로 횡보구간에서 작은 변동성으로 너무 잦은 골크/데크 발생하는 것을 무시하기 위한 옵션.

2. 골크/데크사이 최대바 개수(default=30): 골크/데크간 간격이 너무 넓은 것은 노이즈 간주하기 위한 옵션.

3. 골크/데크간 변화(%)(default=1) : 첫번째 골크(또는 데크)와 두번째 골크와의 변화율이 너무 적은 경우 노이즈로 간주 필터링 할수 있는 옵션.

4. 봉마감 비교: 골드가 발생하였을때 가격은 하락, 데크가 발생하였을때 가격은 상승. 즉 macd다이버전스 일때만 필터링

5. RSI filter : rsi 가 지정된 가격 이상(또는 이하)일때만 롱/숏 시그널 표시.
Moving Average Convergence / Divergence (MACD)macdcross

สคริปต์โอเพนซอร์ซ

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

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

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