Hi, Quantopian company, I am brand new to Quantopian. I want to know if this is a right formula in Quantopian? Thanks!
high_price = history(bar_count=25, frequency='1d',field='high')
low_price = history(bar_count=25, frequency='1d',field='low')
close_price =history(bar_count=25, frequency='1d',field='close_price')
K = talib.EMA((close_price - low_price)/(high_price - low_price), timeperiod = 4)
P = ((K - talib.MIN(K,21))/(talib.MAX(K,21)-talib.MIN(K,21))