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

5/60 Test



PureBytes Links

Trading Reference Links


Sorry if this is a simple question, but I just got 
Metastock last week and I'm having hit and miss success with writing 
tests.  I have a particular problem with simple exits- like an exit the 
same day.
 
I've tried to write a test of (a simplified)  
5/60 intraday indicator- to go long if the close after 60 minutes (i.e. at 
10:30am) is greater than the close after 5 minutes (i.e. 9:35am), and short if 
the close after 60 is less than after 5 minutes.
 
The formula I used is obviously way off base, since 
my results are so wrong, and I'm embarrassed to show it- but here 
goes:
 
Enter Long:  If( C=Minute()=5,C < 
C=Minute()=60,C)
Close Long:   C
 
The short formula is similar except for the > 
symbol.
 
The results just alternate trades between long and 
short, and the exits are the following day, not the same day.
 
I'm sure you can see that the formula just 
won't work.  Help, anyone?
 
Bruce