python-tradingview-ta
python-tradingview-ta copied to clipboard
Q: VWMA and compute simple, how does this work?
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):

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