GormYa

Stop Loss With Average True Range (ATR)

Stop Loss With Average True Range (ATR)

It simplifies the calculation of stop loss price for stop loss method using the average true range (ATR).

For example;
You want to stop loss below 3 ATR. Let's assume the price is 100, the average true range is 5. You will multiply the average true range by 3 and subtract from the price and enter a stop loss order at the 85 price you have reached. Instead of doing this calculation every time, you just need to use this script and set the multiplier to 3. A stop loss line will be drawn below the price candles.

  • You can set the method to be used when averaging the true range. Methods you can use to average: EMA (exponentially moving average), HMA (hull moving average), RMA (moving average used in RSI), SMA (simple moving average), SWMA (symmetrically weighted moving average), VWMA (volume-weighted moving average), WMA (weighted moving average).
  • You can set the length to be used when averaging the true range.
  • You can set the multiplier to be used when determining the stop loss price.



Turkish
Ortalama Gerçek Aralıkla (ATR) Zarar Durdurma
Gerçek aralığın ortalamasını kullanarak zarar durdurma yöntemi için zarar durdurma fiyatının hesaplanmasını kolaylaştırır.

Örneğin;
3 ATR kadar aşağıda zarar durdurmak istiyorsunuz. Fiyatın 100, ortalama gerçek aralığın 5 olduğunu varsayalım. Ortalama gerçek aralığı 3 ile çarparak fiyattan çıkaracaksınız ve ulaştığınız 85 fiyatına zarar durdurma emri gireceksiniz. Bu hesabı her seferinde yapmak yerine bu betiği kullanmanız ve çarpanı 3 olarak ayarlamanız yeterli. Bu sayede fiyat mumlarının altına zarar durdurma çizgisi çizilecektir.

  • Gerçek aralığın ortalaması alınırken kullanılacak yöntemi ayarlayabilirsiniz. Ortalama almak için seçebileceğiniz yöntemler: EMA (üstel hareketli ortalama), HMA (gövde hareketli ortalama), RMA (göreceli hareketli ortalama), SMA (basit hareketli ortalama), SWMA (simetrik ağırlıklı hareketli ortalama), VWMA (hacim ağırıklı hareketli ortalama), WMA (ağırlıklı hareketli ortalama).
  • Gerçek aralığın ortalaması alınırken kullanılacak periyot uzunluğunu ayarlayabilirsiniz.
  • Zarar durdurma fiyatını belirlerken kullanılacak çarpanı ayarlayabilirsiniz.

Mã nguồn mở

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

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

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

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