Discussions
 » 
Product and Service Development
 » 
Formula Assistance
 » 
No errors in syntax but no Explorer Highlight either for this code ...
 
        
            
            
    | 
Rank: Newbie
 Groups: Registered, Registered UsersJoined: 3/15/2013(UTC)
 Posts: 3
 
 | 
            
	      
                Trying to ask if last bar is a 10 bar low and it has been at least 10 bars since a 40 bar high then highlight ... here is my attempt, no errors, no highlight bars either ... Thanks!
 LOW = LLV(L,10) AND BarsSince(HIGH = HHV(H,40)>=10)
 
 | 
    | 
             | 
            
         | 
    |  | 
        
        
        
            
        
            
            
    | 
Rank: Advanced Member
 Groups: Registered, Registered Users, Subscribers, Unverified UsersJoined: 10/28/2004(UTC)
 Posts: 3,112
 Location: Perth, Western Australia
 
 Was thanked: 17 time(s) in 17 post(s)
 | 
            
	      
                Muskoka Joe wrote:LOW = LLV(L,10) AND BarsSince(HIGH = HHV(H,40)>=10) 
Although you don't have a syntax error for the formation of the code, you have a syntax error in the BarsSince() function. See the difference between you have written and this:
 Code:
LOW = LLV(L,10) AND BarsSince(HIGH = HHV(H,40))>=10;
 
You might also want to think in your logic about whether the LOW is a new lower low, or an equal low (which is what you have now).
wabbit [:D]
 | 
    | 
             | 
            
         | 
    |  | 
        
        
        
    
                           
    
| Users browsing this topic | 
| 
Guest (Hidden) | 
Discussions
 » 
Product and Service Development
 » 
Formula Assistance
 » 
No errors in syntax but no Explorer Highlight either for this code ...
 
    
        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.