Hi Gordon,
Thanks a lot.I made necessary changes in settings and it works fine.
I really appreciate your help.

Thanks
Osgem 


--- In amibroker@yahoogroups.com, "Gordon Sutherland" <[EMAIL PROTECTED]> 
wrote:
>
> Hi Osgem,
> 
> My plot looked clean when I ran your code. I can only suggest you 
have
> problems with your data. When running a Scan, I always go into the 
AA
> Settings > General Tab and check that Pad box and appropriate 
Index are
> ticked/entered. My understanding is that this latter procedure 
pads your
> symbols with the previous day's close if you have no data on that 
date
> but the bourse was open and there is data on that day for your 
chosen
> Index.
> 
> Hope the above helps, good luck.
> 
> Regards,
>  
> Gordon  Sutherland
>  
> 
> -----Original Message-----
> From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] 
On
> Behalf Of osgem_2006
> Sent: Saturday, 26 August 2006 2:19 a.m.
> To: amibroker@yahoogroups.com
> Subject: [amibroker] Re: AddToComposite
> 
> Thanks for your guidance Gordon.I was able to run a scan after 
> putting quote mark, but in graph I get price points all over the 
> place,am I missing something ? Please guide me.
> 
> thanks
> Osgem
> 
> 
> --- In amibroker@yahoogroups.com, "Gordon Sutherland" <gosuth@> 
> wrote:
> >
> > Osgem,
> > 
> > You have a typo in your last line of code (missing a quote mark 
in 
> front
> > of the "I"). It then runs just fine.
> > 
> > Graph0 = Foreign( "~MyIndex", "C" )/Foreign( "~MyIndex", "I" );  
> > 
> > Regards,
> >  
> > Gordon  Sutherland
> >  
> > 
> > -----Original Message-----
> > From: amibroker@yahoogroups.com 
[mailto:[EMAIL PROTECTED] 
> On
> > Behalf Of osgem_2006
> > Sent: Friday, 25 August 2006 2:12 a.m.
> > To: amibroker@yahoogroups.com
> > Subject: [amibroker] AddToComposite
> > 
> > I tried to create a composite by using following ATC formula and 
> run a 
> > scan against a watchlist but I get price chart of the 'first 
> symbol' 
> > on the list & not the composite value of the watchlist.what 
change 
> is 
> > needed to get a composite, the formula is as following.
> > 
> > /* AddToComposite statements are for Automatic Analysis -> Scan 
*/
> > /* add Close price to our index OHLC fields */
> > AddToComposite(Close, "~MyIndex", "X" );
> > /* add one to open intest field (we use this field as a counter) 
*/
> > AddToComposite( 1, "~MyIndex", "I" );
> > Buy = 0; // required by scan mode
> > /* this part is for Indicator Builder */
> > Graph0 = Foreign( "~MyIndex", "C" )/Foreign( "~MyIndex", I" );
> > 
> > any help would be appreciated.
> > 
> > thanks
> > Osgem
> > 
> > 
> > 
> > 
> > 
> > 
> > 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 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 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 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/

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


Reply via email to