Hello, I checked the formula and it works fine on my end producing all correct results.
This is user discussion list is not really a place for individual support issues. Please send your questions/request to support at amibroker.com with screenshots showing the situation because the textual descriptions you have given are not providing all necessary information. Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- From: "Vinay Gakkhar." <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, May 04, 2007 10:30 AM Subject: [amibroker] DIFFERENT RESULTS IN ANALYSIS & GRAPH > Dear Mr. Tomasz Janeczko, > > I changed formula to the following: > > _SECTION_BEGIN("Prices"); > CLS = ( C ) ; // initialize CLS > OP = (MA(C, 1)) ; // initialize OP > HI = ((MA(C, 1))+(MA(H,1))-(MA(O, 1))) ; // initialize HI > LO = ((MA(C, 1))+(MA(L,1))-(MA(O, 1))) ; // initialize LO > CL = ((MA(C, 1))+(MA(C,1))-(MA(O, 1))) ; // initialize CL > AddColumn ( ( C ) , "CLS", 1.2) ; > AddColumn ( (MA(C, 1)) , "OP", 1.2) ; > AddColumn ( ((MA(C, 1))+(MA(H,1))-(MA(O, 1))) , "HI", 1.2) ; > AddColumn ( ((MA(C, 1))+(MA(L,1))-(MA(O, 1))) , "LO", 1.2 ) ; > AddColumn ( ((MA(C, 1))+(MA(C,1))-(MA(O, 1))) , "CL", 1.2 ) ; > Plot ( ( C ) , "CLS", colorBlack, styleLine ) ; > Plot ( (MA(C, 1)) , "OP", colorBlue, styleDashed ) ; > Plot ( (MA(C, 1))+(MA(H,1))-(MA(O, 1)) , "HI", colorGreen, styleDashed) ; > Plot ( ((MA(C, 1))+(MA(L,1))-(MA(O, 1))) , "LO", colorViolet, styleDashed ) ; > Plot ( ((MA(C, 1))+(MA(C,1))-(MA(O, 1))) , "CL", colorRed, styleThick) ; > Filter = C > 20; > _SECTION_END(); > > Results are the same. > > One more thing I noted (should have noted & informed you before). All 5 > values in graphs are the same ! > > I tested this formula on IDBI.NS. Results I got in automatic analysis are > CLS-91.55, OP-91.55, HI-96.90, LO-91.10, CL 96.85. And > all 5 results in graph are-87.20 !! > > I know I am doing some silly mistake. But being a novice, cannot understand > what. > > Your guidance will be highly appreciated. > > Best regards, > > gakkhar > > > On Fri, 04 May 2007 12:14:15 +0530, Tomasz Janeczko <[EMAIL PROTECTED]> wrote: > >> Hello, >> >> The output is the same. It is differently formatted by YOU. >> >> You just choosen in your formula to display numbers with different number of >> decimal places. >> In your Exploration formula you specify that you want only 1 decimal digit - >> so output is displayed with one decimal digit >> (rounded >> to 0.1). >> Charts on the other hand use by default 2 decimal places. >> >> Best regards, >> Tomasz Janeczko >> amibroker.com >> ----- Original Message ----- >> From: "Vinay Gakkhar." <[EMAIL PROTECTED]> >> To: "amibroker" <[email protected]> >> Sent: Friday, May 04, 2007 7:56 AM >> Subject: [amibroker] DIFFERENT RESULTS IN ANALYSIS & GRAPH >> >> >>> When I use the following formula, I get different values in columns by >>> automatic analysis & in graphs whereas logically values >>> should be same. >>> >>> Can you please tell me what is wrong in my formula? >>> >>> gakkhar >>> >>> _SECTION_BEGIN("Prices"); >>> Cl1 = ( C ) ; // initialize Cl1 >>> Op2 = (MA(C, 1)) ; // initialize Op2 >>> Hi2 = ((MA(C, 1))+(MA(H,1))-(MA(O, 1))) ; // initialize Hi2 >>> Lo2 = ((MA(C, 1))+(MA(L,1))-(MA(O, 1))) ; // initialize Lo2 >>> Cl2 = ((MA(C, 1))+(MA(C,1))-(MA(O, 1))) ; // initialize Cl2 >>> AddColumn ( Cl1 , "Cl1", 1.1) ; >>> AddColumn ( Op2 , "Op2", 1.1) ; >>> AddColumn ( Hi2 , "Hi2", 1.1) ; >>> AddColumn ( Lo2 , "Lo2", 1.1 ) ; >>> AddColumn ( Cl2 , "Cl2", 1.1 ) ; >>> Plot ( Cl1 , "Cl1", colorBlack, styleLine ) ; >>> Plot ( Op2 , "Op2", colorBlue, styleDashed ) ; >>> Plot ( Hi2 , "Hi2", colorGreen, styleDashed) ; >>> Plot ( Lo2 , "Lo2", colorViolet, styleDashed ) ; >>> Plot ( Cl2 , "Cl2", colorRed, styleThick) ; >>> Filter = C > 20 AND C < 100 AND V > 1500000 ; >>> _SECTION_END(); >>> >>> >>> Please note that this group is for discussion between users only. >>> >>> To get support from AmiBroker please send an e-mail directly to >>> SUPPORT {at} amibroker.com >>> >>> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: >>> http://www.amibroker.com/devlog/ >>> >>> For other support material please check also: >>> http://www.amibroker.com/support.html >>> >>> Yahoo! Groups Links >>> >>> >>> >>> >>> >> >> >> >> Please note that this group is for discussion between users only. >> >> To get support from AmiBroker please send an e-mail directly to >> SUPPORT {at} amibroker.com >> >> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: >> http://www.amibroker.com/devlog/ >> >> For other support material please check also: >> http://www.amibroker.com/support.html >> Yahoo! Groups Links >> >> >> > > > Please note that this group is for discussion between users only. > > To get support from AmiBroker please send an e-mail directly to > SUPPORT {at} amibroker.com > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > http://www.amibroker.com/devlog/ > > For other support material please check also: > http://www.amibroker.com/support.html > > Yahoo! Groups Links > > > > > Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/amibroker/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/amibroker/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
