technical-indicator

How to calculate relative volume using pandas with faster way?

How to calculate relative volume using pandas with faster way? Question: I am trying to implement the RVOL by the time of day technical indicator, which can be used as the indication of market strength. The logic behind this is as follows: If the current time is 2022/3/19 13:00, we look through the same moment …

Total answers: 1

Python: The resulting array of type string does not match

Python: The resulting array of type string does not match Question: I want to make a program to group words consisting of the same characters in an array, but the results don’t match when using the Python programming language Example problem: Suppose I have 3 arrays of type string as follows: oe1 = ["abc", "def"]; …

Total answers: 3

Calculate Bollinger Band using Pandas

Calculate Bollinger Band using Pandas Question: Given a series, I want to calculate its Bollinger Band using Pandas. There exists a prior question, an answer to which discusses only the std aspect of the calculation, but not the entire calculation. Given a variable series of type pandas.Series with dtype float64, to compute a band having …

Total answers: 2

Can't convert the math equation to python code – Polychrom Momentum technical-indicator

Can't convert the math equation to python code – Polychrom Momentum technical-indicator Question: I am having trouble calculating a technical indicator. Below is the paper which explains the math equation for the technical indicator. Here is my code which doesn’t work as planned. def poly_mtm(length: int, prices: list[float]) -> float: poly = 0.0 for i …

Total answers: 1

Finding MACD Divergence

Finding MACD Divergence Question: I want to create a loop to automate finding MACD divergence with specific scenario/criterion, but I am finding it difficult to execute although its very easy to spot when looking at chart by eyes. Note: you can easily get this as ready available scanner but i want to improve my python …

Total answers: 2