@support said in Q22 contest:
take a look at this exam
Hi,
I tried this code
only "close" is available. is it possible to have "open", "low" and "high"
Thanks
@support said in Q22 contest:
take a look at this exam
Hi,
I tried this code
only "close" is available. is it possible to have "open", "low" and "high"
Thanks
@support Hi,
is it possible to get open, high, low, and close for indexes, SPX for example?
import qnt.data as qndata
index_data = qndata.index.load_data(min_date='2005-01-01')
def strategy(data):
close_stocks = data["stocks"].sel(field="close")
open_stocks = data["stocks"].sel(field="open")
high_stocks = data["stocks"].sel(field="high")
low_stocks = data["stocks"].sel(field="low")
Many thanks