Rank: Advanced Member
  Groups: Registered, Registered Users, Subscribers Joined: 2/2/2007(UTC) Posts: 367
  Was thanked: 1 time(s) in 1 post(s)
  
 
     | 
    
        
            
	      
                To create the Trade Into the Gap system, by Stephane Reverre, in MetaStock 6.5 or higher select System Tester from the Tools menu, click New and enter the following code: 
Name: Trade Into the Gap 
Enter long:      GapLong := 3;      GapShort := 3;      Gap := 100*(CLOSE-Ref(CLOSE,-1))/Ref(CLOSE,-1); 
     Gap <= -GapLong 
Close long:      GapLong := 3;      GapShort := 3;      Gap := 100*(CLOSE-Ref(CLOSE,-1))/Ref(CLOSE,-1); 
     BarsSince(Gap <= -GapLong) = 1 
Enter short:      GapLong := 3;      GapShort := 3;      Gap := 100*(CLOSE-Ref(CLOSE,-1))/Ref(CLOSE,-1); 
     Gap >= GapShort 
Close short:      GapLong := 3;      GapShort := 3;      Gap := 100*(CLOSE-Ref(CLOSE,-1))/Ref(CLOSE,-1); 
     BarsSince(Gap >= GapShort) = 2 
Click OK, then click Options, on the Testing page under Trade Price set both the Entry and Exit Price to Close and set both Delays to 0.  
            
  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
        
        
        
    
                           
    
| Users browsing this topic | 
| 
 
Guest (Hidden) 
 | 
    
        Forum Jump
         
    
    You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.