Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

ATMStrategy Position

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

    ATMStrategy Position

    Is there a way to access all atmstrategies positions created by the atmtrategycreate method without referencing to atmstarategyID?

    I notice that Position.MarketPosition doesnt work for position created by the atmtrategycreate method. I also understand that for positions created by the atmstrategycreate method , one needs to use the GetAtmStrategyMarketPosition("id") method.

    However, I need to access ALL position opened by the atmtrategycreatemethod. Is there a system array which keeps all opened positions created by the atmstrategymethod?

    Thanks a lot!

    #2
    puppeye, unfortunately you would need to keep track of the needed reference ID's yourself in the code. For checking the market position of your ATM strategy, you can use GetAtmStrategyMarketPosition() - http://www.ninjatrader-support.com/H...yPosition.html
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by reynoldsn, 05-10-2024, 07:04 PM
    3 responses
    25 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by llanqui, Today, 11:10 AM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by llanqui, Today, 10:29 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by Trader146, 05-10-2024, 09:17 PM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by bourasrafik, Today, 03:26 PM
    0 responses
    5 views
    0 likes
    Last Post bourasrafik  
    Working...
    X