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

FW: [amibroker] Re: Help with Bars Countback



PureBytes Links

Trading Reference Links

Tomasz 
 would you please give a "best use" example with the folloing code?
i have hundreds of lines of code i would like to get rid of.


for(j=1;j<=50;j++)
{

VarSet( "TX"+J,ValueWhen(CONDT,X,j)  ); 


}

S1=Cum((H+L)/2*IIf(V>0,V,0)*IIf(Cum(1)>=TX1 ,1,-1e10))/(Cum(IIf
(V>0,V,0)*IIf(Cum(1)>=TX1,1,-1e10)));
Plot(S1,"S1",2,1);

S2=Cum(((H+L)/2)*IIf(V>0,V,0)*IIf(Cum(1)>= TX2 ,1,-1e10))/(Cum(IIf
(V>0,V,0)*IIf(Cum(1)>=TX2,1,-1e10)));
Plot(S2,"S2",2,1);

tia
 curt

--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> Dave,
> 
> Just a note that _dynamic_ variables already support arrays.
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "Dave Merrill" <dmerrill@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Sunday, July 11, 2004 3:47 PM
> Subject: RE: [amibroker] Static variables example
> 
> 
> > Tomasz, I just wanted to thank you for implementing dynamic and 
static
> > variables. These are such powerful features! I can't wait until 
they support
> > arrays directly.
> > 
> > Thanks again,
> > 
> > Dave Merrill
> > 
> > 
> > 
> > 
> > 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 --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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/