| 
Rank: Newbie
 Groups: Registered, Registered UsersJoined: 12/18/2010(UTC)
 Posts: 7
 
 | 
            
	      
                I want to test a range of values in the System Tester to see what the best value to use.
 My default system is, buy when moving average turns upwards:
 Mov( C, 9,E ) < Mov( Ref(C,-1), 9,E )
 
 I wanna test some like this:
 begin_variable := 1
 end_variable := 50
 increment := 1
 
 So the test sequence
 Mov( C, 1,E ) < Mov( Ref(C,-1), 1,E )
 Mov( C, 2,E ) < Mov( Ref(C,-1), 2,E )
 Mov( C, 3,E ) < Mov( Ref(C,-1), 3,E )
 ...
 until 50
 
 Any ideas how do that?
 
 
 | 
    | 
             | 
            
         | 
    |  | 
        
        
        
            
        
            
            
    | 
Rank: Advanced Member
 Groups: Registered, Registered Users, SubscribersJoined: 3/6/2010(UTC)
 Posts: 113
 Location: London
 
 | 
            
	      
                Replace the moving average period with opt1.
Click on the Optimizations tab to set the start, end and increment. | 
    | 
             | 
            
         | 
    |  | 
        
        
        
    
        
            
            
    | 
Rank: Newbie
 Groups: Registered, Registered UsersJoined: 12/18/2010(UTC)
 Posts: 7
 
 | 
            
	      
                My code use the FmlVar:MM9 := FmlVar("_HiloNervoso","EMA9");
 MM9 > Ref(MM9,-1)
 
 have some way to put the optmization in this?
 
 | 
    | 
             | 
            
         | 
    |  | 
        
        
        
            
        
            
            
    | 
Rank: Advanced Member
 Groups: Registered, Registered Users, SubscribersJoined: 7/25/2005(UTC)
 Posts: 1,042
 
 Was thanked: 57 time(s) in 54 post(s)
 | 
            
	      
                Hi Vingador
The simplest way to do this is to move your "_HiloNervoso" formula into the relevant EST code windows. Unfortunately EST code windows accept less than half the number of characters that are possible in an indicator so the chances are that your formula will not fit. Reducing the number of characters per variable name can help get around the size restriction.
If these measures don't solve your problem then an old issue of the MetaStock Tips & Tools newsletter (MSTT) has an article that tells you how to optimise code such as yours outside of the EST. Copies of old MSTT issues are available for US$5.
Roy
MetaStock Tips & Tools | 
    | 
             | 
            
         | 
    |  | 
        
        
        
    
                           
    
| 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.