November 2019
Beginner
394 pages
10h 31m
English
Now, let's analyze the StatArb signal using the following steps:
# Plot correlations between TRADING_INSTRUMENT and other currency pairscorrelation_data = pd.DataFrame()for symbol in SYMBOLS: if symbol == TRADING_INSTRUMENT: continue correlation_label = TRADING_INSTRUMENT + '<-' + symbol correlation_data = correlation_data.assign(label=pd.Series(correlation_history[correlation_label], index=symbols_data[symbol].index)) ax = correlation_data['label'].plot(color=next(cycol), lw=2., label='Correlation ' + correlation_label) ...
Read now
Unlock full access