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

Re: [amibroker] adaptative indicator



PureBytes Links

Trading Reference Links

The problem is that you can not have a structure of x=x+1. It's not a matter
of using arrays.

try using static variables

//initialize variable
If (isNull,StaticVarGet(isInitialized"))
{
StaticVarSet("Length",0);
}

StaticVarSet("Length",StaticVarGet("Length"));


----- Original Message ----- 
From: "jerome_maeder" <jerome_maeder@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, August 09, 2005 6: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=12hjv1hr7/M=362131.6882500.7825259.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1123605856/A=2889190/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Put more honey in your pocket. (money matters made easy) Welcome to the Sweet Life - brought to you by One Economy</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/