You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a strategy which essentially analyses articles about a particular cryptocurrency as they are posted and determines whether the sentiment is positive or negative. It's rudimentary but what I want to do is as follows.
I have a csv file containing ms timestamps with a corresponding sentiment ("positive" or "negative") on each line. I also have a function which downloads 1m kline data from Binance between the start_date and end_date which is used as the data.
I want to run the backtest and execute a self.buy() whenever there's a "positive" sentiment for a timestamp which falls within the current kline or execute a self.sell() whenever there's a "negative" sentiment for a timestamp.
How can I achieve this? I was looking for some param in the docs which keeps track of/indicates the time the backtest is up to. Thanks in advance/
The text was updated successfully, but these errors were encountered:
Hi all,
I've got a strategy which essentially analyses articles about a particular cryptocurrency as they are posted and determines whether the sentiment is positive or negative. It's rudimentary but what I want to do is as follows.
I have a csv file containing ms timestamps with a corresponding sentiment ("positive" or "negative") on each line. I also have a function which downloads 1m kline data from Binance between the start_date and end_date which is used as the data.
I want to run the backtest and execute a
self.buy()
whenever there's a "positive" sentiment for a timestamp which falls within the current kline or execute aself.sell()
whenever there's a "negative" sentiment for a timestamp.How can I achieve this? I was looking for some param in the docs which keeps track of/indicates the time the backtest is up to. Thanks in advance/
The text was updated successfully, but these errors were encountered: