OPEN-SOURCE SCRIPT
已更新 Price Action Signals

Indicator that shows buy/sell signals based on price action as it relates to a 20 day moving average. If the candle is above the 20 day moving average, we look for candles with long wicks on the top indicating selling pressure. If the candle is below the 20 day moving average we look for candles with a long bottom wick indicating buying pressure. The rules for the wick and the price action can be modified by the user. The two user defined parameters are price movement and wick length.
For instance, the user can choose to only show arrows when candle has moved by X amount. The smaller the timeframe, the smaller the amount. I Recommended the following values when looking at SPY:
On a 1m chart: .10 cents
5min chart: .15 cents
15m chart: .25 cents
1h chart: 1 dollar,
1D chart: 2 dollars
Your mileage will vary.
With the wicks, you choose a percentage. You can choose to only show an arrow above or below a candle if the wick size is at least x% the size of the candle body.
For instance, the user can choose to only show arrows when candle has moved by X amount. The smaller the timeframe, the smaller the amount. I Recommended the following values when looking at SPY:
On a 1m chart: .10 cents
5min chart: .15 cents
15m chart: .25 cents
1h chart: 1 dollar,
1D chart: 2 dollars
Your mileage will vary.
With the wicks, you choose a percentage. You can choose to only show an arrow above or below a candle if the wick size is at least x% the size of the candle body.
發行說明
Removed division by 100 for first input, we're taking the actual value, not a percentage.發行說明
Changed default step value for candle wick length and removed commentary on how to set price value.發行說明
Modified plot to use triangles instead of arrows. Also further modified the step setting for candle wick length.發行說明
Modified plot arrows, changed plot.發行說明
Added ability for user to pick moving average length.開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。