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

Re: [amibroker] Optimizing on Time



PureBytes Links

Trading Reference Links


Hello,
 
Just combine hour and minute:
 
HourMin = 100* Hour() + Minute();
 
tm = Optimize("Time", 900, 900, 1600, 15 );
 
timeok == HourMin >= tm;
 
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
<A title=RickParsons@xxxx 
href="">Rick Parsons 
To: <A title=amibroker@xxxxxxxxxx 
href="">Amibroker Yahoo Groups 
Sent: Friday, October 04, 2002 5:09 
PM
Subject: [amibroker] Optimizing on 
Time

<FONT color=#000080 
size=2>All,
<FONT color=#000080 
size=2> 
I amusing RT 
data and want to condition my trades to execute at certain times of the 
day.  Currently I am using this code:
<FONT color=#000080 
size=2> 
 
Time = <FONT color=#000080 
size=2>Optimize( "Time", 9, 9 , 16, 
1);
TimeOk = <FONT 
color=#000080>IIf(Hour() >= Time, 1, 0<FONT 
color=#000080 size=2>);
 
<FONT color=#000080 
size=2>This works fine, however I would like to optimize on  every 
15 minutes instead of every hour.  Anyone have a way to code 
this?
<FONT color=#000080 
size=2> 
<FONT color=#000080 
size=2>Thanks,
 
<FONT face="Vladimir Script" color=#000080 
size=5>Rick
 Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.