OPEN-SOURCE SCRIPT
Cập nhật 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.
Phát hành các Ghi chú
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
Phát hành các Ghi chú
Trailing Stop Loss is now activated by defaultPhát hành các Ghi chú
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
Phát hành các Ghi chú
Trailing SL FixMã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.