Can anyone help on this one?
How can I delay this buy order by 3 bars, ie it takes the Open(as in
Opening price) of the 4th bar from open (as in day's open on a 1 min
chart)?
One solution is to use a 4-min chart and use the code given below. But
is there a better solutio to get the value from a o
Hello Graham and all,
How can I delay this buy order by 3 bars, ie it takes the open of the
4th bar from open (on a 1 min chart)?
Regards
Kar
--- In amibroker@yahoogroups.com, Graham <[EMAIL PROTECTED]> wrote:
>
> settradedelays(0,0,0,0);
> buy = short = datenum()!=ref(datenum(),-1);
>
> --
>
Neat! I humbly bow before the Master...;)
T.O.
--- In amibroker@yahoogroups.com, Graham <[EMAIL PROTECTED]> wrote:
>
> settradedelays(0,0,0,0);
> buy = short = datenum()!=ref(datenum(),-1);
>
> --
> Cheers
> Graham Kav
> AFL Writing Service
> http://www.aflwriting.com
>
>
>
> On 28/09/2007, t
settradedelays(0,0,0,0);
buy = short = datenum()!=ref(datenum(),-1);
--
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com
On 28/09/2007, t_ohrt <[EMAIL PROTECTED]> wrote:
> If your first bar is at 09:04
>
> IIf(TimeNum()<=090400,Buy,0);
>
> it works for me.
>
> T.O.
>
> --- In am
If your first bar is at 09:04
IIf(TimeNum()<=090400,Buy,0);
it works for me.
T.O.
--- In amibroker@yahoogroups.com, "Amohedas" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> I am trying to create a system that either Buys or Shorts at the
open
> of each trading day.
>
> The data that I'm using is