| 
Rank: Newbie
 Groups: Registered, Registered Users, SubscribersJoined: 4/13/2006(UTC)
 Posts: 1
 Location: Michigan
 
 | 
            
	      
                Are the PWR and POWER functions identical in the MetaStock Formula Language? 
Thanks. | 
    | 
             | 
            
         | 
    |  | 
        
        
        
            
        
            
            
    | 
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)
 | 
            
	      
                An easy way to find is to create an new indicator with both terms in it, and observe, yes, they are the same.
wabbit :D
P.S. I could be wrong here, but I think Pwr() is a deprecated term left over from a previous version when it was replaced by Power() ?? | 
    | 
             | 
            
         | 
    |  | 
        
        
        
    
        
            
            
    | 
Rank: Advanced Member
 Groups: Registered, Registered UsersJoined: 1/19/2005(UTC)
 Posts: 1,065
 Location: Koh Pha-Ngan, Earth
 
 Was thanked: 2 time(s) in 2 post(s)
 | 
            
	      
                Related to this topic, ever tried using Power(Data Array, variable Power)?
MetaStock does not accept variable power, but here is a way around it:
[code:1:559892377f]
================
Power - variable
================
---8<---------------------------------------
{ Power(DataArray,VariablePower) MS function.
 With thanks to MG Ferreira.
 http://www.metastocktools.com }
DataArray:=C;
VariablePower:=DataArray/Mov(DataArray,63,S);
{ Power(DataArray,VariablePower) equivalent }
VarPower:=Exp(Log(DataArray)*VariablePower);
VarPower
---8<---------------------------------------
[/code:1:559892377f]
jose '-) | 
    | 
             | 
            
         | 
    |  | 
        
        
        
    
                           
    
| 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.