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

RE: [amibroker] custom indicator question



PureBytes Links

Trading Reference Links

Hi,

Are You searching for a solution like this one?

Regards,
	Antonio


//XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

//if You want to create a 3rd list, simply add a statement
//like this and another "else if...".

List_1 = Name() == "^AORD" OR 
         Name() == "^N225" OR
         Name() == "^AFLI";


List_2 = Name() == "AAC.AX" OR 
         Name() == "AAT.AX";




List_1_MA = Param("MA List 1",20,2,1000,1);
List_2_MA = Param("MA List 2",30,2,1000,1);
Others_MA = Param("MA Others",40,2,1000,1);

if (List_1)
{
 PER = List_1_MA;
}
else if (List_2)
{
 PER = List_2_MA;
}
else
{
 PER = Others_MA;
}

Plot(MA(C,PER),"MOV AVG("+PER+")",colorRed,styleLine);

//XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX




-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of rasepi
Sent: Thursday, November 03, 2005 11:50 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] custom indicator question

for one custom sheet
example "moving average"
how can i personalize a different period for different stocks
ex for gnbt i will show a 10 ma
   for nvax i will show a 12 ma 
it is possible?

when I choose a period with Param its allways the same for all stocks
    thanks for the experts that helps the beginners

i am on the way to finalise the float channel indicator without vbscript
the float must be parametred manually for each stock

i will share the code when finished






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



 





	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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/