-
Hi, I created a custom array in pre_sim_func_nb in which I store booleans at each iteration. Question - Is there a way to access the array after the simulation is complete ? I have read about Custom Metrics but it doesn't look to fit my need. |
Beta Was this translation helpful? Give feedback.
Answered by
OforgeO
Nov 20, 2023
Replies: 1 comment 1 reply
-
def some_callback(c, my_array, ...): my_array = np.full(...) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
0xazuki7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)