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

Re: Don't take trade on first bar



PureBytes Links

Trading Reference Links

In-Reply-To: <memo.467611@xxxxxxxxxxxxxxxxxxx>
Thanks, Robert.

Now why does the Function Wizard not include the time function,...? 

Cheers,
Ian

> Hi Ian,
> 
> I've used something like:
> 
> if Time > 935 then
>       if condition then
>               ....
> 
> Robert
> 
> -----Original Message-----
> From: Ian Waugh [mailto:ianwaugh@xxxxxxxxxxxxxxxxxxx]
> Sent: 14 June 2001 12:21
> To: omega-list@xxxxxxxxxx
> Cc: ianwaugh@xxxxxxxxxxxxxxxxxxx
> Subject: Don't take trade on first bar
> 
> 
> Can anyone help with this? I'm using TS 4.
> 
> I'm fiddling with an intraday system using 5 min bars and I'd like a 
> condition that allows me to prevent it taking a trade on the very first 
> bar of the day, mainly to avoid taking a trade if the open gaps from 
> last night's close.
> 
> The code is currently:
> 
> if condition... then buy at bbb stop;
> 
> I've tried the LastCalcTime function:
> 
> if condition and LastCalcTime<>1600....
>     the time of the close of the last bar the previous day
> 
> But it simply prevents *all* trades.
> 
> Is there an easy way to do this?
> 
> Cheers,
> Ian
> 
> 
>