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

RE: [amibroker] Re: indicator applies to whole database



PureBytes Links

Trading Reference Links

Indicators are shown for the databse
You can however specify variable values on a per ticker basis

X = (name()=="ABC")*10 + (name()=="BCD")*20 +(name()=="CDE")*30 ;

Or using IIF function

X = iif(name()=="ABC", 10, iif(name()=="BCD", 20, iif(name()=="CDE", 30, 40
))) ;

Cheers,
Graham
http://e-wire.net.au/~eb_kavan/

-----Original Message-----
From: murthysuresh [mailto:money@xxxxxxxxxxxxxx] 
Sent: Thursday, December 23, 2004 7:54 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: indicator applies to whole database



I have the same problem. The only workaroudn that i can think of 
would be to store the parameter as part of the symbol data and 
program so that the indicator can take it from the symbol data. I 
have not tried it, but if someone can, pl share the code.

Regards

Suresh
--- In amibroker@xxxxxxxxxxxxxxx, "Arie Ellerbrak" <a.ellerbrak@xxxx> 
wrote:
> Wayne,
> 
>  
> 
> You're not misunderstanding. I've made a trend-indicator that seems 
to work
> best with different parametervalues for different stocks. I was 
surprised,
> not that this indicator, when applied to one, showed up in all 
windows. But
> that the parameters for one where also applied to all.
> 
> If AB works this way, so be it. I will then have to find a way to 
work
> around this. I'm not sure how though how.
> 
>  
> 
> Regards,
> 
>  
> 
>  
> 
> Arie
> 
>  
> 
>  
> 
>  
> 
>  
> 
> 
> Arie,
> 
> I'm trying to understand your problem.  If you open a custom 
> indicator in a pane below the main chart, it will be applied to 
> whatever stock is in the chart window.  If you switch to another 
> stock, the indicator will be applied to the new stock in the same 
> way.  That's how Amibroker is supposed to work.  Am I 
> misunderstanding?
> 
> Wayne
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Arie Ellerbrak" 
<a.ellerbrak@xxxx> 
> wrote:
> > Hello,
> > 
> >  
> > 
> > I have made a custom indicator with some parameters. When I 
insert 
> this
> > indicator onto a particular stock or index or whatever, it 
applies 
> to the
> > whole database! When I change the parameters, they too change for 
> the whole
> > database. Any other database is not affected. I must have done 
> something
> > wrong, but can't seem to find the error.
> > 
> > Does anyone have an idea?
> > 
> >  
> > 
> > Regards,
> > 
> >  
> > 
> >  
> > 
> > Arie
> 
> 
> 
> 
> 
> Check AmiBroker web page at:
>  <http://www.amibroker.com/> http://www.amibroker.com/
> 
> Check group FAQ at:
> <http://groups.yahoo.com/group/amibroker/files/groupfaq.html>
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Sponsor
> 
> 
> 
> ADVERTISEMENT
>  
> 
<http://us.ard.yahoo.com/SIG=129svgbov/M=295196.4901138.6071305.300117
6/D=gr
> 
oups/S=1705632198:HM/EXP=1103750088/A=2128215/R=0/SIG=10se96mf6/*http:
/compa
> nion.yahoo.com> Klik hier met de rechtermuisknop om afbeeldingen te
> downloaden. Om uw privacy te beschermen, is het automatisch 
downloaden van
> deze afbeelding van internet verhinderd.
> click here
> 
> 
> Klik hier met de rechtermuisknop om afbeeldingen te downloaden. Om 
uw
> privacy te beschermen, is het automatisch downloaden van deze 
afbeelding van
> internet verhinderd.
> 
> 
>  
> 
>   _____  
> 
> Yahoo! Groups Links
> 
> *	To visit your group on the web, go to:
>  <http://groups.yahoo.com/group/amibroker/>
> http://groups.yahoo.com/group/amibroker/
>   
> *	To unsubscribe from this group, send an email to:
>  <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
>   
> *	Your use of Yahoo! Groups is subject to the
> <http://docs.yahoo.com/info/terms/> Yahoo! Terms of Service.






Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/