stock-screener icon indicating copy to clipboard operation
stock-screener copied to clipboard

Squeeze_Momentum_Indicator_LazyBear, the black and grey crosses are not in the same position as it is in TradingView

Open czuczorf opened this issue 2 years ago • 3 comments

Great work, I've tried your code to plot the BTC/USDT on Binance and compare it with TV charts. The values are ok, but the colors of the crosses are not the same somehow. Thanks Bests Feri

czuczorf avatar Feb 14 '22 13:02 czuczorf

Please check here: https://yonghongtan.medium.com/i-double-checked-the-graph-and-indeed-the-crosses-appear-slightly-different-ab228c92da45 I apologize for not mentioning it in the article and in the Jupyter Notebook I shared.

yongghongg avatar Feb 14 '22 15:02 yongghongg

Thank you, I've changed "mult" to "1.5", and now it looks the same as it is on TradingView! But now, I am a little bit confused ;-) should I leave it on "2"? Which one works better? Thanks!

czuczorf avatar Feb 14 '22 15:02 czuczorf

Glad to know that you got everything right. As to which one works better, I really can't say. One will work good for certain instruments and another one will work good for other instruments. I think it all comes down to the instruments set you are trading.

If you want, you can run some simple backtesting to help you decide. Refer to the article below where I try to find the optimized parameter for Supertrend: https://medium.datadriveninvestor.com/the-supertrend-implementing-screening-backtesting-in-python-70e8f88f383d#ed0d

yongghongg avatar Feb 15 '22 14:02 yongghongg