Why can't I change the INTERVAL in the simple MA Crossover example??
Get errors every time...
THRESHOLD = 0.005 # buy and sell threshold
INTERVAL = 43200 # candle size (in seconds)
SHORT = 10 # short moving average period
LONG = 90 # long moving average period
what error are you getting and what interval are you attempting?
Yep....that's the reason.
I didn't know only specific time frames were allowed...
@james we should add a list of valid intervals to the strategy API help
Sorry I'm a little confused, we already have a list of intervals in the API document (the ones you pasted above).
ah ok nevermind I see it there in "constants" I was looking for the list in "changing the data resolution"
I typed the list myself
Bumping this because I am looking for bigger ticks.
to be precise daily and weekly candle data.
Any ideas on how to go about getting those?
You can use deep_c() on 12h candles to get that:
I am not sure how I can get the OHLC data for lets say daily or weekly candles from that.
If I dont misunderstand the warmup concept entirely, it fetches previous data at the bots own set interval,
and the deep_c() is a method to go further back (but at the same interval size).
give me about 30 minutes, I'll manifest
faster to python than explain