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

Re: ela help



PureBytes Links

Trading Reference Links

You can do something like this:

If condition1 then begin
   value1 = barnumber;
   value2 = High;
end;

If Barnumber - value1 < 10 and close > value2 then
   Buy;

This assuming condition1 is your setup, and that you
want to buy only if the close goes over the setup
within 10 bars of the setup bar.


H

--- R S <randall21@xxxxxxxxxxx> wrote:
> How do I write the code to have a system buy only
> after a subsequent close 
> has exceeded the high of the "setup" bar?
> 
> Thank you.
>