Hereby a script where the relative strength of an (in this case) altcoin is measured. The script produces a correlation between the altcoin and total altcoin market (Total2 index, see script). Using this script you can see when there is a strong correlation between the two and when there isn't. Moreover, it also produces long/short signals using hull moving average crossover.
Long signals are produced when correlation is below 0 and the hma of the pair is higher than the lagging hma. Short signals are produced when correlation is below 0 and the hma of the pair is lower than the lagging hma. Short/Long is closed after correlation is going back towards a set correlation target as well as the Take profit percentage is reached.
In the above example the script is applied to one of my favorite altcoin projects (rose). Looking forward to feedback/suggestions.
진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.