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

[amibroker] Re: AddToComposite



PureBytes Links

Trading Reference Links

Hi Gordon,
Thanks for your help, the code works fine now.
Also if I wish to include volume of all the scrips in the composite 
what addition is needed ? Please help.

Thanks 
Osgem

--- In amibroker@xxxxxxxxxxxxxxx, "Gordon Sutherland" <gosuth@xxx> 
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@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] 
On
> Behalf Of osgem_2006
> Sent: Saturday, 26 August 2006 2:19 a.m.
> To: amibroker@xxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxx, "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@xxxxxxxxxxxxxxx 
[mailto:amibroker@xxxxxxxxxxxxxxx] 
> On
> > Behalf Of osgem_2006
> > Sent: Friday, 25 August 2006 2:12 a.m.
> > To: amibroker@xxxxxxxxxxxxxxx
> > 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
>