MarcoValente

Qstick V2

68
this is the Qstick as described by Tushar S. Chande and Stanley Kroll and post from AleksandrLombrozo , so all credit for this code going to him. I just add the option to change both of the sources (close , open)
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?
//@version=2
//Can choose the source to apply
study("Qstick V2")
src=input(close,title="source 1")
src1=input(open,title="source 2")
lenght=input(defval=8,title="length_Qstick", step=1)
difference=sum(src,lenght)-sum(src1,lenght)
ema_input=input(defval=5,title="length_ema", step=1)
ema=ema(difference,ema_input)
plot(difference, color=red, linewidth=2, style=histogram)
plot(ema,color=blue,transp=20)