python-tradingview-ta icon indicating copy to clipboard operation
python-tradingview-ta copied to clipboard

Q: VWMA and compute simple, how does this work?

Open KingKnecht opened this issue 3 years ago • 0 comments

Hi, I'm studying your code. For calculating buy/sell/neutral for VWMA you're using the simple() compute function with checks for 1/-1/0.

https://github.com/brian-the-dev/python-tradingview-ta/blob/dbb02b91c7a135ee9b8ed7b91a05f65cb00719ae/tradingview_ta/main.py#L166-L169

and

https://github.com/brian-the-dev/python-tradingview-ta/blob/dbb02b91c7a135ee9b8ed7b91a05f65cb00719ae/tradingview_ta/technicals.py#L226-L240

How does this work? Obviously VWMA is not in range of [-1,1]. Here is a screenshot from TradingView with VWMA(20):

image

I'm asking, because I may like to port it to C#/Ninjatrader.

Thx

KingKnecht avatar Apr 25 '22 16:04 KingKnecht