(May-05-2023, 08:34 PM)deanhystad Wrote: If you can provide a good description of what you want to do, you will get more responses. I know that can be difficult, but when I look at your post I have no idea where you are in this process. Is this a python question (1)? Is it a question about finding or using a package for doing some particular processing (2)? Do you just have a bunch of data and are looking for guidance about what to do with it (3)? You will get a lot of responses for type 1 and 2 questions, but not so much for type 3 unless you are lucky enough to run across someone who's done or seen something similar.
So what are you thinking of doing with last_20, last_50 and last_200?
Thank you for your patience and explaining to me why people are having difficulty helping me. As you can probably see, I am quite new to coding.
I think my problem is closer to option (1) you described. Basically, my code cycles through currency pairs and time frames and it finds the moving averages (last_20, last_50 and last_200) of each of the pairs on each of the timeframes. What I would like to do is write a new module that uses the data from this code to rate the data in terms of profitability. I definitely could do this if I break the code up to only look for one currency pair on one timeframe but I thought this code will make it a lot easier and condensed for me (as there's 133 different modules this code would break down into).
The trouble I am having is that now that I want to write this new module to rate the data as individual pieces (for instance, rate btc/usd moving averages on the 15 minute time frame), that I am not sure how to isolate these pieces of data in order to rate them.
I am thinking of defining each moving average more clearly, so that each time it loops through that a correct definition will come up regarding it. So just like how I've wrote out the currency pairs and time frames in a sort of list (not sure of the programming term), I will do that with the moving averages and because now I have defined them, I will be able to draw upon that data in my new module. Is that how I should go about accomplishing it?
Again, I really appreciate the help.