Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~218 People Reached
Favorite Forums
Favorite Tags
Member Avatar for StarryEyedSoy

I'm trying to find the moving average of 20 numbers at a time, being read from a list. This moving average then needs to be inserted into the list. Here is my code: [code]inplis = file(r'table.csv','r').readlines() outp = file(r'avg_volume.csv','w') import math emptyList = [] totalVolume = 0 counter = 0 …

Member Avatar for jlm699
0
110
Member Avatar for StarryEyedSoy

I have a list of the stock prices over 14 years and am required to calculate the daily returns as Returns = log(today_s price/yesterday_s price) Here's what my data looks like: 7/18/2008 19.57 7/17/2008 18.08 7/16/2008 14.27 How do I calculate this while reading the data from excel? I have …

Member Avatar for StarryEyedSoy
0
108