Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

GetAtmStrategy...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    GetAtmStrategy...

    Hello,

    Please tell me what I'm doing wrong...
    I'm trying a simple piece of code to understand GetAtmStrategy...
    I'm receiving a method error that the Id doesn't exist for the following.


    Code:
    if (FirstTickOfBar)
    			{
    				if (atmStrategyId.Length ==0)
    				{	
    					atmStrategyId = GetAtmStrategyUniqueId();
    			
    				}
    				
    				if (atmStrategyId.Length > 0)
    				{
    					
    					Print("GetAtmStrategyMarketPosition(atmStrategyId)\t" +GetAtmStrategyMarketPosition(atmStrategyId));
    					Print("atmStrategyId\t" +atmStrategyId);
    					atmStrategyId = string.Empty;
    				}
    				//else {atmStrategyId = string.Empty;}
    			}
    Here's the error message: http://screencast.com/t/IONsnRHFO

    Thanks for your help.

    Kirk
    Last edited by zeller4; 11-12-2011, 03:29 PM.

    #2
    Originally posted by zeller4 View Post
    Hello,

    Please tell me what I'm doing wrong...
    I'm trying a simple piece of code to understand GetAtmStrategy...
    I'm receiving a method error that the Id doesn't exist for the following.


    Code:
    if (FirstTickOfBar)
                {
                    if (atmStrategyId.Length ==0)
                    {    
                        atmStrategyId = GetAtmStrategyUniqueId();
                
                    }
                    
                    if (atmStrategyId.Length > 0)
                    {
                        
                        Print("GetAtmStrategyMarketPosition(atmStrategyId)\t" +GetAtmStrategyMarketPosition(atmStrategyId));
                        Print("atmStrategyId\t" +atmStrategyId);
                        atmStrategyId = string.Empty;
                    }
                    //else {atmStrategyId = string.Empty;}
                }
    Here's the error message: http://screencast.com/t/IONsnRHFO

    Thanks for your help.

    Kirk
    first you are assigning the atmStrategyId a value. but no orders/trades exists with that newly created value. so the second part of the code throws an error. there should be an entry order in between.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    666 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    377 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    110 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    580 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X