<s> '''<STR_LIT>''' <EOL> from tradingWithPython import estimateBeta , Spread , returns , Portfolio , readBiggerScreener <EOL> from tradingWithPython . lib import yahooFinance <EOL> from pandas import DataFrame , Series <EOL> import numpy as np <EOL> import matplotlib . pyplot as plt <EOL> import os <EOL> symbols = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> y = yahooFinance . HistData ( '<STR_LIT>' ) <EOL> y . startDate = ( <NUM_LIT> , <NUM_LIT:1> , <NUM_LIT:1> ) <EOL> df = y . loadSymbols ( symbols , forceDownload = False ) <EOL> res = readBiggerScreener ( '<STR_LIT>' ) <EOL> quote = yahooFinance . getQuote ( symbols ) <EOL> print quote <EOL> s = Spread ( symbols , histClose = df , estimateBeta = False ) <EOL> s . setLast ( quote [ '<STR_LIT>' ] ) <EOL> s . setShares ( Series ( { '<STR_LIT>' : <NUM_LIT:1> , '<STR_LIT>' : - <NUM_LIT> } ) ) <EOL> print s <EOL> fig = figure ( <NUM_LIT:2> ) <EOL> s . plot ( ) </s>
