I am trying to figure out how to go about taking a history of price changes of a market into excel and using it to look for a set length of a cycle that repeats in the data, for example number of days, or hours, measuring extremes in the range of price in the cycle from each cycle beginning, and then calculating for a deviation.
Ok so if my cycle length is 100 days, and the price of a market makes various highs and lows in between that, each cycle I meaure where the highs and lows happen, from the beginning of the cycle, lets say on the first cycle the price is going up and makes a high price on the 10th day. Then on the next cycle the price is going down and makes a low on the 11th day, and on the third cycle the price is going down and makes a low price on the 9th day, etc Ignoring price at this time. Now I have a minimum and a maximum. Now the fourth cycle happens and the extreme price happens on the 12th day, and it goes on and on and on so that after I have 100 cycles. I have various dates where I can calculate the deviation. Now imagine that I am able to configure this excel program to measure multiple dates that fall within the cycle. And that I can also change the cycle length and the number of points to measure for.
How can I go about setting up and configuring definable metrics of the cycle to read the data against a standard deviation formula and outputting in the spreadsheet (if possible) the values calculated? Having this automated to where I configure the program to measure standard deviation outputs for a range of cycle metrics (length of cycle, number of dates per cycle to look for) and then show me the cycle configuration that has the best deviation.
Hope I have made some sense. I have no idea how to begin I just need some help in getting started. I am no excel pro but I'm sure that it will be simple enough to accomplish. I just don't know excel language or how to communicate my idea to those that do. Thanks in advance if you are able to offer any guidance or wish to develop a dialogue with me to better understand what I am trying to do. Right now the only accomplishment I am able to make is importing the data into excel. Pathetic I know.
Bookmarks