[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EquisMetaStock Group] Re: Closes for last trading day for last month,month before,lst week & wk before



PureBytes Links

Trading Reference Links

Try this code for Month's Close:

---8<--------------------------------

{ Indicator input }
pds:=Input("Previous Nth Month",1,120,1);

{ New month signal }
NewMonth:=Month()<>Ref(Month(),-1);

{ Nth month's Close }
NthMthClose:=ValueWhen(pds,NewMonth,Ref(C,-1));

{ Plot on daily/weekly chart }
NthMthClose

---8<--------------------------------


For weekly values, take a look at some of the indicator code found in
http://www.metastocktools.com/#metastock

OHLC - Weekly
-------------
True weekly Open/High/Low/Close/WC/Typ for daily/intraday charts, 
independent of any missing data.


jose '-)
http://www.metastocktools.com




--- In equismetastock@xxxxxxxxxxxxxxx, vbabuff <no_reply@xxx> wrote:
>
> Hello.
> 
> I am a definite beginner but so far have not figured out how to create 
> a formula to calculate last month's close & the previous month's close 
> (ditto for last week's close and prev week close)> Has anybody ever 
> comne across a similar problem, please?
> 
> Thank you so much for the help and attention.
> 
> Best,
> 
> VBABUFF





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/