| 
Rank: Member
 Groups: Registered, Registered Users, SubscribersJoined: 4/5/2023(UTC)
 Posts: 15
 Location: cairo
 
 | 
            
	      
                
Mod(Cum(1),8)=0
 When divided by 8 it gives a remainder of zero
Is it possible to have an equation to give the remainder equals = zero for the number of times?
 
 | 
    | 
             | 
            
         | 
    |  | 
        
        
        
            
        
            
            
    | 
Rank: Advanced Member
 Groups: Moderators, Registered, Registered Users, SubscribersJoined: 10/8/2010(UTC)
 Posts: 1,999
 
 Thanks: 96 timesWas thanked: 160 time(s) in 155 post(s)
 
 | 
            
	      
                Originally Posted by: mohamedmostfa  
Mod(Cum(1),8)=0
 When divided by 8 it gives a remainder of zero
Is it possible to have an equation to give the remainder equals = zero for the number of times?
 
 Hello, Are you wanting to know the number of times this formula is equal to 1 over time? If so, you could perhaps write something like: Code:X:=Mod(cum(1),8)=0;
Cum(X=1)
 | 
    | 
             | 
            
         | 
    |  | 
        
        
        
    
        
            
            
    | 
Rank: Member
 Groups: Registered, Registered Users, SubscribersJoined: 4/5/2023(UTC)
 Posts: 15
 Location: cairo
 
 | 
            
	      
                
Thank you. Is it possible to convert to an expert?
 | 
    | 
             | 
            
         | 
    |  | 
        
        
        
            
        
            
            
    | 
Rank: Advanced Member
 Groups: Moderators, Registered, Registered Users, SubscribersJoined: 10/8/2010(UTC)
 Posts: 1,999
 
 Thanks: 96 timesWas thanked: 160 time(s) in 155 post(s)
 
 | 
            
	      
                Originally Posted by: mohamedmostfa  
Thank you. Is it possible to convert to an expert?
 Hello again, The formula works in the Expert Advisor, but most of the Expert tabs are simply designed to provide a visual indication of a signal. If you want to actually return the value of the above formula, you would need to add it to the Expert Commentary. To write it in a way that would work in the Expert Commentary, you could remove the Variable, and use the WriteVal function (this function is unique to Expert Commentary). Code:WriteVal(Cum((Mod(cum(1),8)=0)=1))
 You can of course add more descriptive text to the Commentary tab, and combine this with the formula above. Edited by user Friday, May 10, 2024 2:48:25 PM(UTC)
 | Reason: Not specified | 
    | 
             | 
            
         | 
    |  | 
        
        
        
    
        
            
            
    | 
Rank: Member
 Groups: Registered, Registered Users, SubscribersJoined: 4/5/2023(UTC)
 Posts: 15
 Location: cairo
 
 |  | 
    | 
             | 
            
         | 
    |  | 
        
        
        
            
        
            
            
    | 
Rank: Member
 Groups: Registered, Registered Users, SubscribersJoined: 4/5/2023(UTC)
 Posts: 15
 Location: cairo
 
 | 
            
	      
                
 Is it possible to write the date of the achieved candle based on that?
 
 | 
    | 
             | 
            
         | 
    |  | 
        
        
        
    
                           
    
| 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.