Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

help needed: how to pull indicator value from all time frame at one shot? #56

Closed
fxdt opened this issue Apr 9, 2020 · 5 comments
Closed

Comments

@fxdt
Copy link

fxdt commented Apr 9, 2020

help wanted on how to pull an indicator value from all time-frame at one shot?

on TradingView, i pull out these values from an indicator

['GBPUSD', 'M: -53.00460785710888', 'W: -53.00460785710888', 'D: -18.48497324001634', 'H4: -7.875243664717016', 'H1: -33.94957983193184', 'M30: -32.47422680412316', 'M15: -22.485207100590525', 'M5: -31.232876712327133', 'M2: -41.45454545454205']
['GBPUSD']

let's take RSI as a sample,
TA.RSI(ohlc).tail(10) will pull out for Daily and the past 10 days. i would like to see current data.

no idea how to get these info hence asking for help

pandas 1.03
python 3.7.6

@peerchemist
Copy link
Owner

You need last value?

TA.RSI(ohlc).values[-1]

@fxdt
Copy link
Author

fxdt commented Apr 9, 2020

yes that is correct.

TA.RSI(ohlc).values[-1] will default at which time interval ? How can i add more time interval or it has to be individual and merge in a dataframe ?

@peerchemist
Copy link
Owner

TA.RSI defaults at 14 periods, to change it you can just pass second argument: TA.RSI(ohlc, 15).

@fxdt
Copy link
Author

fxdt commented Apr 10, 2020

14 period is at daily timeframe. how about intraday timeframe?

@peerchemist
Copy link
Owner

FInta always does calculations on the dataset you give it to. If you gave it daily dataset you'll get daily dataset back, if you give it intraday dataset it will do math on the intraday data.

Give it intraday data as input.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants