patrickestarian

Patrick's Buy Histogram

Set up a trailing stop at about 0. Look for the red dots.and that's a good point to enter a long trade.

สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?
study(title="Patrick's Buy Signal", shorttitle="Patrick's Buy Signal", overlay=false)
len1 = input(title="EMA Len 1", type=integer, defval=4, minval=1)
len2 = input(title="EMA Len 2", type=integer, defval=2, minval=1)
len3 = input(title="EMA Len 2", type=integer, defval=3, minval=1)

hline(0, color=gray, linewidth=1, linestyle=line, title="Zero Line")

typical = (high + low + close) / 3
ema1 = ema(typical, len1)
ema2 = ema(typical, len2)

D = 100*(ema2/ema1)-100
L = ema(D, len3)
//plot(D, color=blue, linewidth=1, title="Slower Moving Average")
//plot(L, color=red, linewidth=1, title="Faster Moving Average")

agl = atan(L-L[1])*10
diff = agl-agl[1]
plot(diff, color=black, linewidth=1, title="Oscillator")

bsig = iff (diff>0 and diff[1]<0, 0.1, 0)
plot(bsig, color=red, style=histogram, linewidth=5, title="Buy Histogram")