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提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。