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

Re: [Metastockusers] OHLC



PureBytes Links

Trading Reference Links

srhallbeck

This should do the trick. Withe value of "A" set higher than the last hour
of your market the preceding days OHLC will plot once the first bar of the
current day is available. If you set "A" to equate to your last bar then
OHLC will update immediately that bar is plotted without needing to wait for
the first bar of the following day.

Roy

  {Previous Days OHLC}
  {set values for last bar, or later time}
  {CLOSE}
A:=Hour()=24 {AND Minute()=xx};
B:=Hour()<ValueWhen(2,1,Hour()) OR Cum(1)=2;
J:=If(A,1,If(Alert(A,2)=0 AND B,2,0));
ValueWhen(1,J,If(J=1,C,ValueWhen(2,1,C)));
  {HIGH}
K:=ValueWhen(1,J,HighestSince(1,B,H));
M:=ValueWhen(1,B,HighestSince(2,Alert(B>0,2),Ref(H,-1)));
ValueWhen(1,J>0 AND Min(K,M)>0,If(J=1,K,M));
  {LOW}
K:=ValueWhen(1,J,LowestSince(1,B,L));
M:=ValueWhen(1,B,LowestSince(2,Alert(B>0,2),Ref(L,-1)));
ValueWhen(1,J>0 AND Min(K,M)>0,If(J=1,K,M));
  {OPEN}
ValueWhen(2,Hour()<ValueWhen(2,1,Hour()),O);



----- Original Message ----- 
From: "srhallbeck" <shallbec@xxxxxxxxx>
To: <Metastockusers@xxxxxxxxxxxxxxx>
Sent: Friday, August 22, 2003 3:37 PM
Subject: [Metastockusers] OHLC


> Any willing to share a formula drawing prior day OHLC lines on
> today's chart?for MS RT?
> Thanks!
>
>
>
> To unsubscribe from this group, send an email to:
> Metastockusers-unsubscribe@xxxxxxxxxxx
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/zMEolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx

 

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