OPEN-SOURCE SCRIPT
已更新 TradingPit Scalping Strategy - EUR/USD 15M

This is our first publication of a trading script on TradingView using our custom 15 minute scalping setup for the EUR/USD. It has been optimised for the 15 minutes time frame on EUR/USD but you can use it on other assets and time frames as well but will have to adjust the settings to do so.
The strategy uses a short (30) and long period (200) exponential moving average which you can both change in the settings. The strategy is trend following and designed to only trade in the direction of the trend. It looks for pullbacks against the direction of the trend to buy and sell into the trend.
Long Entry Conditions:
- Short EMA above long EMA and price above short EMA
- Pullback below short EMA
- Entry on close above short EMA
Short Entry Conditions:
- Short EMA below long EMA and price below short EMA
- Pullback above short EMA
- Entry on close below short EMA
There are two different options to set a stop loss:
1. Using ATR (you can configure the ATR multiplicator in the settings)
2. Using Trailing Stop Loss (You can configure the trailing percent in the settings)
You can also configure the initial account balance (you need to set a higher one to simulate trading with leverage as there is no feature to do so otherwise) the percentage of account risked per trade as well as the commission payed per trade.
發行說明
The new version includes the following changes:-option to switch between live trading and backtesting
-better filtering of ranges
-Trailing Sl is drawn in on the chart
發行說明
Trailing Stop Loss is now activated by default發行說明
Changes:- added option to chose between ATR SL or Trailing SL
- added ATR SL multiplier
- added Range filter based on EMA spread and ATR multiplier
- Added Labels for different SL/TP orders on chart
發行說明
Trailing SL Fix開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。