Skip to content

How to access a custom array created in pre_sim_func_nb after the backtest is complete? #672

Closed Answered by OforgeO
0xazuki7 asked this question in Q&A
Discussion options

You must be logged in to vote

def some_callback(c, my_array, ...):
my_array[i, col] = ...

my_array = np.full(...)
pf = vbt.Portfolio.from_signals(..., some_callback=some_callback, some_args=(my_array, ...))
print(my_array)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@0xazuki7
Comment options

Answer selected by 0xazuki7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants