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

Re: [amibroker] Re: trying to calculate pivot points using a limmited time frame


  • To: <amibroker@xxxxxxxxxxxxxxx>
  • Subject: Re: [amibroker] Re: trying to calculate pivot points using a limmited time frame
  • From: "Ara Kaloustian" <ara1@xxxxxxxxxx>
  • Date: Wed, 5 Oct 2005 19:57:14 -0700

PureBytes Links

Trading Reference Links

Try
 
Buy = iif(DayStart > StartTime,Cross(H,OR30high),1,0);
 
you can not use arrays with "if"
 
 
----- Original Message -----
From: Tony Lei
Sent: Wednesday, October 05, 2005 6:36 PM
Subject: Re: [amibroker] Re: trying to calculate pivot points using a limmited time frame

Graham,

I 'm trying to use an IF statement for the following intraday scan, but it does not work.  It ask for a numeric variable and I don't know what to use besides IF statements.  From the code example you provided, this is what I came up.  I'm trying to make the scan run only after StartTime and only the current day.

StartTime = 094500 ;
IF (dayStart > StartTime)
{
buy = Cross ( H, OR30high )
}

thanks for the help

tony

On 10/5/05, Dennis And Lisa <dennisandlisa@xxxxxxxxxxxxx> wrote:
Thank you Graham...this is exactly what I was looiing for.

Dennis



--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> Here are a couple of things you can try
>
> you can code in the intraday times with AFL
> dayStart = cross(timenum(),062959);
> dayFinish = cross(timenum(),125959);
> eg these can be used to find the days open and close prices with
valuewhen
> Dayopen = valuewhen( daystart, O );
> DayClose = valuewhen( dayfinish, C );
>
>
> or use this condition
> MarketOpen = timenum()>=63000 and timenum()<=130000;
>
> If you are using a chart you can set the market times into either day
> or night session and use that for the chart, or as above use the aFL
>
>
> --
> Cheers
> Graham
> AB-Write >< Professional AFL Writing Service
> Yes, I write AFL code to your requirements
> http://e-wire.net.au/~eb_kavan/ab_write.htm
>
>
> On 10/5/05, Dennis And Lisa <dennisandlisa@xxxx> wrote:
> > I'm trying to calculate pivot points and I need info from the previous
> > day session for the YM futures contract. I know that futures trade 24
> > hrs, thus AFL assumes that the previous day's trading session is 24
> > hrs. I need to code into AFL that the previous day's trading session
> > is from 6:30 AM to 1:00 PM pacific time only for the YM.  Is there a
> > way I can do this with the "TimeframeSet in Daily" or similar function
> > to specify a limited session range?
> >
> > Thank you
> > Dennis




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS






Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS