TradingView
PeacockCapitalMarkets
2022年7月22日上午10點43分

Larry Williams Proxy Index  

Bitcoin / U.S. dollarBitstamp

描述

Larry Williams Proxy Index indicator( Featured in No-Nonsense Forex Episode:youtube.com/watch?v=KkynxVPNL0E&t=49s)
How to use:
Go long when the line crosses below 50
Go short when the line crosses above 50
評論
vimuks
It is amazing, thanks a lot. Could you share the script?
PeacockCapitalMarkets
@vimuks, //@version=5
indicator(title="Larry Williams Proxy Index(NNFX)", shorttitle="LWPI", overlay=false, timeframe="", timeframe_gaps=true)
length = input.int(title="Length", defval=21, minval=1)

diff = open-close
movingAvg= ta.sma(diff,length)
// ATR= ma_function(ta.tr(true), length)

Tr = math.max(high-low,high-close[2],low-close[2])
// Atr = ta.sma(Tr,length)
Atr = ta.atr(length)
LWPI= (movingAvg/Atr)*50+50

// smoothing = input.string(title="Smoothing", defval="RMA", options=["RMA", "SMA", "EMA", "WMA"])
// ma_function(source, length) =>
// switch smoothing
// "RMA" => ta.rma(source, length)
// "SMA" => ta.sma(source, length)
// "EMA" => ta.ema(source, length)
// => ta.wma(source, length)
plot(LWPI, title = "LWPI", color=color.new(#B71C1C, 0),linewidth=3)
// hline(50, title="Signal Line", color=, linestyle=hline.style_dashed)
hline( 50, "+50", color=color.yellow,linewidth=2)
hline( 75, "+50", color=color.red,linewidth=2)
hline( 25, "+50", color=color.green,linewidth=2)

cheers!
vimuks
@PeacockCapitalMarkets, thanks a lot. I really appreciate it.
Do you still trade or just develop? Nice job bro
PeacockCapitalMarkets
@vimuks, Thank you, I do both.
vimuks
@PeacockCapitalMarkets, do you use any other indicator from Larry? like the valuation where he compares the price of a stock for example with gold- dollar index and Bonds ?do you have an instragram so i can follow you?
更多