andrew_allen

PROSTRATS Pine Script for Swing Trading

This is a simple script for swing trading. It uses my 2 favorite indicators; the Choppiness Index as well as Fibonacci Retracement. This script is meant to run on the 4 hour time frame, in my case I use BTCUSD. It will buy when 2 conditions are met. The first is that the Choppiness Index is above 54.5 on the Daily Time frame, which means the price has potential to swing high or low. I used the security() function to ensure this takes place on the daily time frame because larger time frames tend to dominate smaller time frames in terms of overall swings. The second condition is that the price has to cross above the 1 level of the Fibonacci Retracement. This ensures that the swing is going to be an upwards swing, as opposed to a downwards one. The measure I took to ensure that the Fibonacci Retracement level of 1 is above the 0 level is to make sure that the r value of the 1 level is greater than the r value of the 0 level.
The sell condition is programmed to execute when either the price crosses above the 1.618 level(profit target) or cross below the 0 level(stop loss).
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 đồ?