Open Leci37 opened 1 year ago
Hello @Leci37,
Awesome! Hopefully you or someone else can make a PR based off the development branch to get it integrated with the library sooner.
Kind Regards KJ
Hi! First at all, thank you so much for your effort! It´s great! I have some problems with it, please could you check it?
Traceback (most recent call last): File "C:\Users\Usuario\anaconda3\envs\trading-system-env\lib\site-packages\pandas\core\ops\array_ops.py", line 165, in _na_arithmetic_op result = func(left, right) File "C:\Users\Usuario\anaconda3\envs\trading-system-env\lib\site-packages\pandas\core\computation\expressions.py", line 241, in evaluate return _evaluate(op, op_str, a, b) # type: ignore[misc] File "C:\Users\Usuario\anaconda3\envs\trading-system-env\lib\site-packages\pandas\core\computation\expressions.py", line 70, in _evaluate_standard return op(a, b) TypeError: unsupported operand type(s) for /: 'str' and 'int'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Usuario\Desktop\Dev\projects\crypto-bot\screener_crypto.py", line 36, in
Already solve it...I leave the Q&A in case someone´s the same problem...
Sometimes the df has some values as strings... The solution is to use pd.to_numeric() an convert this values en NaN, allowing the calculations.
Example: df['Close'] = pd.to_numeric(df['Close'], errors='coerce')
Thanks!
Koncorde by manboto Python
https://es.tradingview.com/script/lLFiT3av/
Definition:
Koncorde is a mix of SIX indicators, 4 trend indicators and 2 volume indicators. Its representation is based on colored areas and not on simple lines, which (I believe) is also a certain novelty in the design of stock market indicators. The brown area and the red mean are trend and the green and blue areas are volume. For the calculation of the brown area (trend) an adjusted version of VIGIA is used, which is a weighted and amplified indicator composed of RSI, MFI, Bollinguer Bands and Stochastic. The green area and the blue area are obtained from the percentage change of the IVP (Positive Volume Index) and IVN (Negative Volume Index) indicators. Anyone reading the available documentation on these two little mathematical gems will discover that they ATTRIBUTE the volumes traded to either strong hands (IVN) or weak hands (IVP). In the case of Koncorde the strong hands are represented by the movements of the blue area and the weak hands by that of the green.
Example view:
If you want edit, Plot code here : https://github.com/Leci37/stocks-prediction-Machine-learning-RealTime-TensorFlow/blob/master/Utils/Utils_plotter.py#L399 Feel free to improve and share, in case of error. Usage: https://github.com/Leci37/stocks-prediction-Machine-learning-RealTime-TensorFlow/blob/master/technical_indicators/talib_technical_PY_TI.py#L143
Python Code:
Pandas ta is requiered, look here https://pypi.org/project/pandas-ta/