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

[amibroker] Pyramiding



PureBytes Links

Trading Reference Links

Thank you TJ:

AFL has been extremely a joy to program with... also much more open 
than CQG's!

DJ

--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> Hello,
> 
> Simple loop will solve your problem.
> 
> yy1 = low; // init
> 
> for( i = 1; i < BarCount; i++ )
> {
>    yy1[ i ] = IIF( xx1[ i ] > yy1[ i - 1], low[ i ], high[ i ];
> }
>   
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "hotdayinlimbo" <dj@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Tuesday, August 31, 2004 8:04 PM
> Subject: [amibroker] Variable Call back in formula - help
> 
> 
> > Hi - Somewhat of newbie coming over from CQG. 
> > 
> > I am trying to duplicate this coding from CQG and getting stuck 
> > here: 
> > CQG 
> > yy1:= if(xx1 > yy1[-1], low, high); 
> > AMIBroker 
> > yy1=iif(xx1 > ref(yy1,-1), low, high); 
> > 
> > I cannot get Amibroker to recognize ref(yy1,-1)... is there 
another 
> > way to reference the variable one ago in the same line of code? 
> > 
> > Thx, 
> > DJ
> > 
> > 
> > 
> > 
> > 
> > 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 --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/