Hi I'm curious as to how I might take calculated values and put them into a list that I can then sum when doing a backtest.
Below are 2 if statements and I want to use them to add values to a list.
if change_indicator > 0 and price_change_prev > 0:
this is where I want to add a value to a list
if change_indicator < 0 and price_change_prev < 0:
this is also a place where I want to add a value to the same list
I eventually want to sum the whole list and then print a singular value