PureBytes Links
Trading Reference Links
|
> From: farriners@xxxx [mailto:farriners@x...]
> Sent: Sunday, December 02, 2001 6:18 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] holdtill()
>
>
> Hi,
> The function hold(expression,periods) obviously needs to know the
> number of periods.
> I want to hold a value until a condition occurs.
> I have suggested to TJ that a holdtill(expression,condition) would be
> useful.
> Can anyone suggest a way to code this? (in case TJ doesnt like the
> idea!)
Don,
Try function Flip()
.....
exp1 = expression();
cond1 = condition();
exp1 = Flip(exp1, cond1);
Regards
Marek
|