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

RE: [amibroker] adaptive indicator



PureBytes Links

Trading Reference Links

This is what you want (from Help). Not all AB functions accept arrays as
inputs. CCIa does (versus CCI). There are versions of EMA (AMA, AMA2)
that do also. Probably others.

CCI
- commodity channel index 	Indicators	

SYNTAX 	CCI( periods = 14 )
CCIa( array, periods = 14 ) 	
RETURNS	ARRAY 	
FUNCTION 	Calculates the Commodity Channel Index (using periods
averaging range ).
Second version (CCIa) accepts input array, so CCI can be applied to
array different than close. (CCIa exists in AFL 2.2+ only (v.4.20+)) 	


--
Terry
| -----Original Message-----
| From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
| Behalf Of Steve Dugas
| Sent: Tuesday, August 09, 2005 08:14
| To: amibroker@xxxxxxxxxxxxxxx
| Subject: Re: [amibroker] adaptative indicator
| 
| To use an array where a constant is required, put it inside
| LastValue()
| 
| CCI( LastValue( Length ) )
| 
| If this doesn't give the results you want, please give more details of
| what
| you are trying to do.
| 
| Steve
| 
| ----- Original Message -----
| From: "jerome_maeder" <jerome_maeder@xxxxxxxx>
| To: <amibroker@xxxxxxxxxxxxxxx>
| Sent: Tuesday, August 09, 2005 9:37 AM
| Subject: [amibroker] adaptative indicator
| 
| 
| > Hi!
| >
| > I would like to change the parameter of my indicator ( CCI for
| > exemple ) after each bar. For example:
| >
| > Length = 0;
| > Length = Length + 1;
| >
| > NewCCI = CCI(Length);
| >
| > Buy = CCI(Length) > 150;
| >
| > It's just a simple example, do you understand what is my problem?
| > Length is an array and it's not possible to use it as a parameter!
| >
| > Thanks in advance!
| >
| > Jerome
| >
| >
| >
| >
| >
| >
| >
| > 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! Groups Sponsor --------------------~--
| >
| <font face=arial size=-1><a
| href="http://us.ard.yahoo.com/SIG=12hr3habb/M=362343.6886682.7839641.1
| 493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1123605504/A=2894354/R=0/S
| IG=11qvf79s7/*http://http://www.globalgiving.com/cb/cidi/c_darfur.html
| ">Help Sudanese refugees rebuild their lives through
| GlobalGiving</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
| 
| 
| 
| 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h8l3u67/M=362343.6886682.7839641.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1123605798/A=2894350/R=0/SIG=10tj5mr8v/*http://www.globalgiving.com";>Make a difference. Find and fund world-changing projects at GlobalGiving</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/
 

<<attachment: winmail.dat>>