I apologize if what I am going to ask now seems plain but I am trying to familiarize myself with the sketch of creation of the backtest strategy, but this line of code is not obvious to me and I would like someone to clarify it for me :
**eval('dict(' + args.strat + ')'))
from what I know, this is a function eval () whose parameter is the sequence runs python code
but this record absolutely puzzled me because it seems to me that it is from packing of
a dictionary items .- **
Latest posts made by augustus
-
RE: Multi Example
-
RE: Multi Example
I thought that the values obtained from the some simulations were behind these values.
-
Multi Example
Hi
Can I ask someone to explain following script code snippet:class St(bt.Strategy):
params = dict(
enter=[1, 3, 4], # data ids are 1 based
hold=[7, 10, 15], # data ids are 1 based
it is cut from :
backtrader.com/blog/posts/2017-04-09-multi-example/multi-example.htmlwhy such default values and not others?
Thank You in advance for some comments especially from administrators.
-
RE: GenericCSVData
@backtrader
Hi
Thank you very much for the tip. It turned out to be fruitful. -
GenericCSVData
Hi there ,
I am sorry, I feel other already had this issue and it was solved .
if I have a text file with the following data structure,shown on attached picture do I need to create my own class of data feeder or use generic csvdata feeder of the backtester ?
I thank you in advance for your help and tips . -
RE: yahoos' alternatives
It's my mistake. I read it wrong. Thank you for directing me in right way .
-
RE: yahoos' alternatives
why copying this script i receive these messages ?
-
yahoos' alternatives
I just install Backtrader and started to get acquainted with the Quickstart but I see that it needs to be updated because even the
included code examples are still based on yahoo. What other data providers can I use for so that not to get the exceptions and errors in these examples ? is among them Alpha vantage or other ones ?I'm sorry if I did not find a thread related to it.