the sell is taking out a previous high. leave some runners and practice safe trading. Explanation of Behavior: When the price retraces 50% of the defined range (from the low to high), a Buy signal is triggered. After the Buy signal, if the price moves above the previous high (after retracement), a Sell signal is triggered. Once a Sell signal is triggered, the range is reset, and a new range needs to form before another signal can be triggered. Test this: Apply the script to your chart. Check for Buy signals when the price crosses the 50% retracement level. Sell signals will trigger once the price breaks above the previous high after the retracement phase. Ensure that the signals are plotted as arrows on the chart and that the background color changes to indicate Buy or Sell. Alerts Setup: To set up alerts:
Right-click on the chart and select Add Alert. For Buy Signal: Choose the condition Buy and Sell Signal at 50% Retracement with Top Break > Buy Signal. For Sell Signal: Choose the condition Buy and Sell Signal at 50% Retracement with Top Break > Sell Signal. Set your preferred alert type (popup, email, etc.). Click Create to set the alert.
진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.