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

Re: [amibroker] Re: Indicator window not reloading when selecting a new symbol



PureBytes Links

Trading Reference Links

this format can be used without the need param window

SA1 = if(Name()=="IBM", 20, iif(Name()=="INTC", 16, 10 ));

I normally set these up in excel when there are many iif's.
Concatenate is great tool in excel.


On 8/5/05, Anthony Faragasso <ajf1111@xxxxxxxx> wrote:
> Try this:
>  
> 
> 
> MA1periods=50; 
> 
> MA2periods=100; 
> 
> MA3periods=200; 
> 
> if(Name()=="MSFT") 
> 
> {
> 
> MA1periods=10; 
> 
> MA2periods=21; 
> 
> MA3periods=50; 
> 
> }
> 
> else
> 
> if(Name()=="INTC") 
> 
> {
> 
> mA1periods = 16; 
> 
> mA2periods = 12; 
> 
> mA3periods = 13; 
> 
> }
> 
> Plot(C,"close",colorBlack,styleCandle); 
> 
> Plot(MA(C,MA1periods),"ma1",colorWhite,styleLine); 
> 
> Plot(MA(C,MA2periods),"ma2",colorBlue,styleLine); 
> 
> Plot(MA(C,MA3periods),"ma3",colorRed,styleLine);
> 
> ----- Original Message ----- 
> From: angus_83210 
> To: amibroker@xxxxxxxxxxxxxxx 
> Sent: Thursday, August 04, 2005 2:40 PM
> Subject: [amibroker] Re: Indicator window not reloading when selecting a new
> symbol
> 
> still don't work, need to reload indicator window for each stock and 
> scan.
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, Wilson <wiz899@xxxx> wrote:
> > try this.. 
> >  if(Name()=="IBM") 
> > {
> > SA1 = 20;
> > SA2 = 9;
> > SA3 = 11;
> > N = 19;
> > }
> > else
> > {
> > SA1 = 10;
> > SA2 = 10;
> > SA3 = 10;
> > N = 10;
> > }
> > 
> > if(Name()=="INTC")
> > {
> > SA1 = 16;
> > SA2 = 12;
> > SA3 = 13;
> > N = 3;
> > }
> > 
> > Wilson
> > 
> >  On 8/4/05, angus_83210 <rduncan@xxxx> wrote: 
> > > 
> > > Is there a way to make Amibroker reload the indicator window 
> each 
> > > time I change symbols. I like to use different Parameters for 
> > > differnt stocks. When I change stocks, it keeps my old param. 
> Here 
> > > is what I am doing:
> > > 
> > > if(Name()=="IBM") 
> > > {
> > > SA1 = 20;
> > > SA2 = 9;
> > > SA3 = 11;
> > > N = 19;
> > > }
> > > if(Name()=="INTC")
> > > {
> > > SA1 = 16;
> > > SA2 = 12;
> > > SA3 = 13;
> > > N = 3;
> > > }
> > > 
> > > If I have "IBM" up and add my indicator, it is correct. When I 
> > > select "INTC" it still using "IBM"'s param. It also uses "IBM"'s 
> > > param when I do a scan. Does anyone know a work around for this 
> bug?
> > > 
> > > 
> > > Thank
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 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 <http://amibroker.com/>
> > > 
> > > For other support material please check also:
> > > http://www.amibroker.com/support.html
> > > 
> > > 
> > > 
> > > 
> > >  ------------------------------
> > > YAHOO! GROUPS LINKS 
> > > 
> > > 
> > >    - Visit your 
> group "amibroker<http://groups.yahoo.com/group/amibroker>" 
> > >    on the web.
> > >     - To unsubscribe from this group, send an email to:
> > >    amibroker-unsubscribe@xxxxxxxxxxxxxxx<amibroker-
> unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
> > >     - Your use of Yahoo! Groups is subject to the Yahoo! Terms 
> of 
> > >    Service <http://docs.yahoo.com/info/terms/>. 
> > > 
> > > 
> > >  ------------------------------
> > >
> 
> 
> 
> 
> ________________________________
> 
> 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.10.1/64 - Release Date: 8/4/2005
> 
> 
> 
> 
> 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
> 
> 
> 
> 
> 
> SPONSORED LINKS 
> Investment management software Investment property software Investment
> software 
> Investment tracking software Return on investment software Stock investment
> software 
> ________________________________
> YAHOO! GROUPS LINKS 
> 
>  Visit your group "amibroker" on the web.
>   
>  To unsubscribe from this group, send an email to:
>  amibroker-unsubscribe@xxxxxxxxxxxxxxx
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  To unsubscribe from this group, send an email to:
>  amibroker-unsubscribe@xxxxxxxxxxxxxxx
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> ________________________________
> 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.10.1/64 - Release Date: 8/4/2005
> 
> 
> 


-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12ht0ph00/M=362343.6886682.7839641.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1123198976/A=2894352/R=0/SIG=11fdoufgv/*http://www.globalgiving.com/cb/cidi/tsun.html";>Help tsunami villages rebuild at GlobalGiving. The real work starts now</a>.</font>
--------------------------------------------------------------------~-> 

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:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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