SuddenFX

PA ScratchiCloud

183
This indicator is a modification of Golgistain's Hi/Lo Pivot indicator. I added a shorter length 2 to get early entries on short positions.

The way it works is you choose a timeframe you would like to trade and then set the indicator length to match the candle price action patterns. Default is M5 chart with 4/2 for the indicators.

Rules: Take the trade when price breaks out the top or bottom of the line.
Exit: Take what you can get and give nothing back.

Good luck - CharlieMax :0)
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 đồ?
// Original work done by Golgistain
// Modified by Charlie Max for price action scalping

study(title="HB H/L", shorttitle="ScratchiCloud", overlay=true)
len = input(4, minval=1, title="Length")
len2 = input(2, minval=1,title="Length")
    //The length defines how many periods a high or low must hold to be a "relevant pivot"

h = highest(len)
    //The highest high over the length
h1 = dev(h, len) ? na : h
    //h1 is a pivot of h if it holds for the full length
hpivot = fixnan(h1)
    //creates a series which is equal to the last pivot

l = lowest(len2)
l1 = dev(l, len2) ? na : l
lpivot = fixnan(l1)
    //repeated for lows

plot(hpivot, color=blue, linewidth=2)
plot(lpivot, color=purple, linewidth=2)
//plot(hpivot, color=blue, linewidth=2, offset= -len+1)
//plot(lpivot, color=purple, linewidth=2, offset= -len2+1)
//plot(h1, color=black, style=circles, linewidth=4, offset= -len+1)
//plot(l1, color=black, style=circles, linewidth=4, offset= -len+1)