Thanks Richard for taking the time to address my problem.
If A1:A40 are my dates. A1 is yesterday and A40 is 40 business day
ago.
and B1:B40 are the closing prices for those dates.
A 2-day Average is simply =average(B1:B2), a 5-day is =Average(B1:B5)
I am a trader who wants to be long if the shorter average is above th
longer average and short if the shorter average is below the longe
average. Let's say I currently own a stock. I want my Excel workshee
to tell me during the current day, what price needs to trade today t
put the short avg below the long avg? Eventually, that day's dat
will be placed into cell B1 after B1-B40 is Ctrl C, arrow down, CTR
V'd
>Thanks Richard for taking the time to address my problem.
>
[quoted text clipped - 11 lines]
>will be placed into cell B1 after B1-B40 is Ctrl C, arrow down, CTRL
>V'd.
OK, Thanks,
I just need to understand what you mean by shorter average and longer
average - in terms of the data in your original post. I'm also not
quite clear how your data results in the Less Than and Greater Than
results your OP suggests.
e.g. in the first column for the 2 day moving average (row 1 576.5 -
what are these values incidentally, how are they calculated?), the
moving avg of 576.375 is less than the number in the first column,
however on the second row, the 579 3 day moving avg is more than the
576.38 in the first column. Yet your OP marks these both as 'Less
Than'.
Your OP talked about the moving averages 'crossing each other. Could
you just expand on that please, again with ref to your original data.
I think the Solver Add-in is probably needed for a solution here, but
I just need to fully understand your data first.
Sorry for being a bit wooden about this.
Rgds
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
Wild Nerd - 21 Mar 2006 14:55 GMT
Richard,
In the OP, the price 576.5 is the closing price for Soybeans at th
Chicago Board of Trade. I currently plug in these prices(column AE
daily.
These are the actual formulas in the spreadsheet. Does this mak
better sense?
=AVERAGE(AE41:AE42)-- (Shorter Avg(2-Day))
=AVERAGE(AE41:AE43)-- (Shorter Avg(3-Day))
=AVERAGE(AE41:AE45)-- (Shorter Avg(5-Day))
=AVERAGE(AE41:AE47)-- (Shorter Avg(7-Day))
=AVERAGE(AE41:AE52)-- (Longer Avg(12-Day))
=AVERAGE(AE41:AE58)-- (Longer Avg(18-Day))
=AVERAGE(AE41:AE70)-- (Longer Avg(30-Day))
=AVERAGE(AE41:AE80)-- (Longer Avg(40-Day))
AD AE
1 576.5
=+AD41+1 576.25
=+AD42+1 584.25
=+AD43+1 587.75
=+AD44+1 584.5
=+AD45+1 589.25
=+AD46+1 587.75
=+AD47+1 584
=+AD48+1 590
=+AD49+1 600.5
=+AD50+1 606
=+AD51+1 604
=+AD52+1 591
=+AD53+1 594
=+AD54+1 593
=+AD55+1 590.25
=+AD56+1 584.75
=+AD57+1 586.5
=+AD58+1 601
=+AD59+1 614.5
=+AD60+1 604.25
=+AD61+1 599
=+AD62+1 596
=+AD63+1 597.75
=+AD64+1 596
=+AD65+1 601.75
=+AD66+1 591.25
=+AD67+1 588
=+AD68+1 607.5
=+AD69+1 596.75
=+AD70+1 592.25
=+AD71+1 606.75
=+AD72+1 609.5
=+AD73+1 599.75
=+AD74+1 584.5
=+AD75+1 578
=+AD76+1 581
=+AD77+1 585
=+AD78+1 577.75
=+AD79+1 574.75
=+AD80+1 574.75
=+AD81+1 580.7