If I use only Weekly data feed, I have this plot - with wide bars.
I want to use multi timeframed data feeds in the same strategy, but on the plot to show show them as wide Weekly candles, the same as on image above.
So there is no way to resample timeframe to Weekly? because if i'll add Minute timeframe, it will even more tiny, but we only need this data to stop loss, for all other strategy decisions only weekly data feed used.
What is your suggestion in this situation?
I have 2 data feeds daily & weekly, and want only weekly to be shown on plotting.
I have this code to do this:
d0 = cerebro.resampledata(data, timeframe=bt.TimeFrame.Days, compression=1) d0.plotinfo.plot = False d1 = cerebro.resampledata(data, timeframe=bt.TimeFrame.Weeks )
but the problem is that date time axis still consist of days, and as result candles are very tiny.
ATR / CMO / EMA(ATR) - using weekly data feeds. so they should scale to weeks too.
Could you say please how to fix it?
Please help, I'm trying to determine the rapid convergence of curves/indicators for example EMA10 and EMA20 to close position before curves will cross. Is there any internal function/algo similar to CrossOver but which can be triggered when indicators begin to converge rapidly ?
Thanks everyone for help.