Rank: Newbie
  Groups: Registered Users
 Joined: 7/21/2014(UTC) Posts: 1
  
 
     | 
    
        
            
	      
                Hi, I would like to create an indicator which shows me the cumulative volume of the current month and the second month of the future contracts. Any clues on how i can add the second month volume to the current month ? Thanks 
 
  
            
  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
        
        
        
            
        
            
            
    
        
Rank: Advanced Member
  Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,999
  Thanks: 96 times Was thanked: 160 time(s) in 155 post(s)
  
 
     | 
    
        
            
	      
                Originally Posted by: longrun  Hi, I would like to create an indicator which shows me the cumulative volume of the current month and the second month of the future contracts. Any clues on how i can add the second month volume to the current month ? Thanks 
 
  
Hello,  The Security Data function can call a data array for a particular instrument. A simple example would be: Code:Cum(Security("Online:ESM9",V) + Security("Online:ESU9",V)) 
 
 
            
  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
        
        
        
    
        
            
            
    
        
Rank: Newbie
  Groups: Registered, Registered Users, Subscribers Joined: 4/21/2009(UTC) Posts: 2
  
 
     | 
    
        
            
	      
                Originally Posted by: MS Support  Originally Posted by: longrun  Hi, I would like to create an indicator which shows me the cumulative volume of the current month and the second month of the future contracts. Any clues on how i can add the second month volume to the current month ? Thanks 
 
  
Hello,  The Security Data function can call a data array for a particular instrument. A simple example would be: Code:Cum(Security("Online:ESM9",V) + Security("Online:ESU9",V)) 
 
 
Does one have to change the Symbol manually everytime one checks new symbol ?
 
  
            
  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
        
        
        
            
        
            
            
    
        
Rank: Newbie
  Groups: Registered, Registered Users, Subscribers Joined: 4/20/2020(UTC) Posts: 6 Location: Delhi
  
 
     | 
    
        
            
	      
                Hello Sir I want to make cumulative open interset indicator by the sum first month,second month and third,month future open interest Sir, I know that the security function will be used but how will it happen And if the security function is not used, how will we do it? and my symbols are coming like this  and (my symbols are in local disk d )
  NSE50 1 - MONTH
  NSE50 2 - MONTH 
 NSE50 3 - MONTH
  
            
  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
        
        
        
    
        
            
            
    
        
Rank: Advanced Member
  Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,999
  Thanks: 96 times Was thanked: 160 time(s) in 155 post(s)
  
 
     | 
    
        
            
	      
                Originally Posted by: Sam karan121  Hello Sir I want to make cumulative open interset indicator by the sum first month,second month and third,month future open interest Sir, I know that the security function will be used but how will it happen And if the security function is not used, how will we do it? and my symbols are coming like this  and (my symbols are in local disk d )
  NSE50 1 - MONTH
  NSE50 2 - MONTH 
 NSE50 3 - MONTH
  
Hello, With local data, you will need to use the Security function including the data path. If you have the latest MetaStock version, the Help file's "Security" function topic contain the details and examples. In the case of open interest, assuming the open interest data is in an Open Interest column, you would use OI as the data field to call in the Security function. A simple online example is: Code:Security("Online:Cc1",OI) 
 
  
            
  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
        
        
        
            
        
            
            
    
        
Rank: Newbie
  Groups: Registered, Registered Users, Subscribers Joined: 4/20/2020(UTC) Posts: 6 Location: Delhi
  
 
     | 
    
        
            
	      
                Sir, I did not understand how i don't have the latest version is metstock And what do I have to do like this  Security("Online:Cc1",OI) + Security("Online:Cc2",OI) + Security("Online: Cc3",OI) 
What will be done by doing this? And here's what the online function means
The data path where the data is And what does Cc1 mean here
 
            
  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
        
        
        
    
        
            
            
    
        
Rank: Newbie
  Groups: Registered, Registered Users, Subscribers Joined: 4/20/2020(UTC) Posts: 6 Location: Delhi
  
 
     | 
    
        
            
	      
                Sir When I am doing this, I am getting an error that folder does not contain metastock files please help Security("Data Path:symbol of first month ",OI) + Security("Data Path:Symbol of second month",OI)
 + Security("Data Path: Symbol of third month",OI) I want to make an indicator of this method as I have given the photo 
 I have been working on this model for many days, please help Thank you so much if you help
 
 Edited by user Friday, April 24, 2020 11:38:07 AM(UTC)
 | Reason: Some text are coming small  
            
  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
        
        
        
            
        
            
            
    
        
Rank: Advanced Member
  Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,999
  Thanks: 96 times Was thanked: 160 time(s) in 155 post(s)
  
 
     | 
    
        
            
	      
                Hello again, It sounds like this is really more a case of getting MetaStock to read your data, because until that can be done, forming indicators is of secondary concern. What file format are your data files stored in? The security function will not work with CSV/TXT so the data must be in a MetaStock formatted data file. If you have CSV/TXT data you can use the DownLoader to Convert this data to the MSLocal (or Legacy) format, which can then be used in the Security function. The data must be formatted correctly, however in order to be successfully converted.  
            
  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
        
        
        
    
        
            
            
    
        
Rank: Newbie
  Groups: Registered, Registered Users, Subscribers Joined: 4/20/2020(UTC) Posts: 6 Location: Delhi
  
 
     | 
    
        
            
	      
                It is because of you that I have been able to make that indicator thank you from the heart
 Edited by user Monday, April 27, 2020 7:12:11 AM(UTC)
 | Reason: indicator successful make  
            
  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
        
        
        
            
        
            
            
    
        
Rank: Newbie
  Groups: Registered, Registered Users, Subscribers Joined: 8/9/2020(UTC) Posts: 1
  
 
     | 
    
        
            
	      
                Hi,Karan
can u help me in this. I am too stuck in it. 
            
  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
        
        
        
    
                           
    
| 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.