Bring in other time series to a bot
Created at 22 Dec 2022, 19:17
Bring in other time series to a bot
22 Dec 2022, 19:17
Hello
I am trying to build a bot that uses a higher TF for indicators than the bot.
Below is what I found to use but then CALGO says it's been obselete.
var dailySeries = MarketData.GetSeries(TimeFrame.Daily);
Ideally I would have a supertrend on hourly as well as an RSI on hourly as my bot is in minutes.
Does anyone know how to do this?
Thanks
Nick
Replies
PanagiotisChar
23 Dec 2022, 09:41
Hi Nick,
You can only do this for the RSI, like this
var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var rsi = Indicators.RelativeStrengthIndex(dailyBars.ClosePrices, 14);
Need help? Join us on Telegram
Need premium support? Trade with us
@PanagiotisChar
drilonhametaj
22 Dec 2022, 19:27
Use GetBars
Hi, i had the same problem but i found a solution using
Then you can use this bars as Source for your indicators, i will put here an example for using it:
In this example i use 3 EMA with different timeframe, in backtesting this will kill the performance, need a lot of time for backtesting
@drilonhametaj