Open sadboytom889 opened 1 year ago
What are you trying to do?On Nov 17, 2023, at 11:41 PM, sadboytom889 @.***> wrote: I'm not familiar with C, how should I define "long" or "short" when using it in python?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>
@mrjbq7 example: /real body is long when it is longer than twice the average of the real bodies of the previous 10 candles/ { TA_BodyLong, TA_RangeType_RealBody, 10, 2.0 }, How to implement such a setting in python?
Do you have an example in C that is what you're hoping to have work?
I assume what you're looking for is TA_SetCandleSettings
...
And this is how you'd do it in python:
import talib._ta_lib
talib._ta_lib._ta_set_candle_settings(settingtype, rangetype, avgperiod, factor)
Thank you, this is exactly what I need
I'm not familiar with C, how should I define "long" or "short" when using it in python?