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

[amibroker] Intraday Intensity



PureBytes Links

Trading Reference Links

I am getting error in the following code. Please help me

/* Intraday Intensity*/
xSum = 0;
ySum = 0;
	
for(i = -21; i <= 0; i++)
 {
diff1 =(Ref(High,i) - Ref(Low,i));
if (diff1 != 0)
{

xSum = (xSum + (2 * Ref(Close,i) - Ref(High,i) - Ref(Low,i)) /  (Ref
(High,i) - Ref(Low,i)) *  Ref(Volume,i));
ySum = (ySum+  Ref(Volume,i));

}
}
	
if(ySum == 0)
   Graph0=0; 
else
    Graph0= xum / ySum * 100;



------------------------ 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/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/