I want to use pos.EntryCommission & ExitCommission in my Script ( for test, not real trading). Try it in Max Percent Risk & SetShareSize modes. I use PrintDebug( string.Format( "ExitCommission: {0}", pos.ExitCommission)   ); and saw that it always zero.
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        Sorry, I found the answer myself in the QuickRef.
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        Commissions are zero during strategy execution unless you set them in strategy code and uncheck commissions in Preferences>>Commissions. Then:
CODE:
Please log in to see this code.
 in the strategy sets the final commission value.
    
 
    
        
    
    
        
    
    
        Size:  
    
        Color: