I currently am having trouble trying to get my "embarrassingly parallel" backtesting code converted to a code that will do parallel processing.
# Code Start
input 1 = [AAPL, GOOG, IBM, XOM]
alloc = []
for i in range(0,10):
input 2 = alloc
def function(input1, input2)
#My function code
# Insert multiprocessing code here
# Code End
I have scoured the internet resources and have tried using their techniques. However, I do not have a programming background so interpreting the examples has proven difficult for me.
Can someone help me through the rest of this code?
Thanks in advance!
# Code Start
input 1 = [AAPL, GOOG, IBM, XOM]
alloc = []
for i in range(0,10):
for j in range(0,10):
for k in range(0,10):
for m in range(0,10):
if (i+j+k+m = 10)
temp = [i, j, k, m]
alloc = np.append(alloc,temp)
alloc = np.append(alloc,temp)
input 2 = alloc
def function(input1, input2)
#My function code
# Insert multiprocessing code here
# Code End
I have scoured the internet resources and have tried using their techniques. However, I do not have a programming background so interpreting the examples has proven difficult for me.
Can someone help me through the rest of this code?
Thanks in advance!

