OPEN-SOURCE SCRIPT

Noro's TrendMA Strategy

The strategy uses 2 moving averages. Fast and slow. SMA or EMA - the user can select. Moving averages are needed to identify the direction of the trend.

Trend
If both moving averages are directed upwards, it 's uptrend.
If both moving averages are pointing down, it 's downtrend.
If the moving averages are directed in different directions, the trend has not changed.

Background
Lime color is uptrend.
Red color is downtrend.
By default, background display is disabled, but you can enable it in script settings.

Trading
If uptrend (lime background) - open long position (and close short position)
If downtrend (red background) - open short position (and close long position)
Reverse trading, no stop-loss and take-profit
Short positions can be removed and only long positions can be traded.

For
- crypto/USD (XBT/USD, ETH/USD, etc)
- timeframes: 1h, 4h, 1d
Moving Averages

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?


Ngoài ra, trên:

Thông báo miễn trừ trách nhiệm