OPEN-SOURCE SCRIPT
PriceAction & Economic Strategy

This indicator combines price-action logic with macroeconomic data to generate trading signals.
Features:
- Price-action signals: A bullish signal occurs when a candle closes above its open; a bearish signal occurs when a candle closes below its open.
- Signal gap: The indicator includes an input called "Signal Gap (bars)" that defines the minimum number of bars between signals. By default the gap is set to 3, but you can adjust this between 1 and 10 to control signal frequency.
- Alerts: The script defines alert conditions for long and short signals, allowing you to create TradingView alerts that notify you when a new signal occurs.
- Economic data: The script uses TradingView's built-in `request.economic()` function to request U.S. GDP data. The GDP series is plotted in the Data Window for additional macroeconomic context.
How to use:
1. Add the indicator to a chart.
2. Open the indicator's settings and adjust the "Signal Gap (bars)" input to set the minimum bar gap between signals.
3. Look for green triangles plotted below the bars (bullish signals) and red triangles plotted above the bars (bearish signals). These appear only when the gap criterion is met.
4. If you want alerts, click the Alert button in TradingView, select this indicator, and choose either the Long or Short alert conditions.
5. To view the GDP data, open the Data Window; the GDP value will be shown alongside other series for each bar.
6. Use these signals in combination with your own analysis; this indicator is for educational purposes and does not constitute financial advice.
Features:
- Price-action signals: A bullish signal occurs when a candle closes above its open; a bearish signal occurs when a candle closes below its open.
- Signal gap: The indicator includes an input called "Signal Gap (bars)" that defines the minimum number of bars between signals. By default the gap is set to 3, but you can adjust this between 1 and 10 to control signal frequency.
- Alerts: The script defines alert conditions for long and short signals, allowing you to create TradingView alerts that notify you when a new signal occurs.
- Economic data: The script uses TradingView's built-in `request.economic()` function to request U.S. GDP data. The GDP series is plotted in the Data Window for additional macroeconomic context.
How to use:
1. Add the indicator to a chart.
2. Open the indicator's settings and adjust the "Signal Gap (bars)" input to set the minimum bar gap between signals.
3. Look for green triangles plotted below the bars (bullish signals) and red triangles plotted above the bars (bearish signals). These appear only when the gap criterion is met.
4. If you want alerts, click the Alert button in TradingView, select this indicator, and choose either the Long or Short alert conditions.
5. To view the GDP data, open the Data Window; the GDP value will be shown alongside other series for each bar.
6. Use these signals in combination with your own analysis; this indicator is for educational purposes and does not constitute financial advice.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
Knowledge's Joe
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
Knowledge's Joe
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
