PureBytes Links
Trading Reference Links
|
Try this, I hope it works:
mo=9.30;//market open
n=(int(Now(4)/100))/100;
x=n-mo;
xxx=60*int(x)+100*frac(x);//minutes since market open
Regards,
Johan
--- In amibroker@xxxxxxxxxxxxxxx, "bobbyklr" <bobbyklr@xxxx> wrote:
> I've written a formula to display the intraday price and volume
> change (ie; is the price up on greater than normal volume). The
> formula:
>
> Filter = ((V - ((Sum (V, 50)/50)/(390)*(xxx))) / ((Sum (V, 50)/50)/
> (390)*(xxx) * 100);
> AddColumn((C - Ref (C, -1)), "Price Chg ");
> AddColumn((C - Ref (C, -1)) / Ref (C, -1) * 100, "Price % Chg " );
> AddColumn( Filter, "V % Chg " );
> AddTextColumn( Now(2), "Current time");
>
> The one drawback to the formula is that I must manually enter the
> time in minutes since the market opened (xxx in formula).
>
> Ive tried seveval of the time formulas to get the time in minutes
> automatically without success.
>
> I'm sure there is a way to do this. Can someone help me?
>
> Thanks..........Bob
------------------------ 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/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|