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

Optimizing on Time



PureBytes Links

Trading Reference Links


<FONT color=#000080 
size=2>All,
<FONT color=#000080 
size=2> 
I am using 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>);
 
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