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

ASM Reversals from NinjaScript?

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

    ASM Reversals from NinjaScript?

    Hi,

    I've got a strategy Script running that executes an ASM strategy. Works great, the new trade is triggered and managed from ASM. There are some known conditions under which I'd like to enter a new limit order to enter a trade in the opposite direction using a different ASM strategy to manage the new trade, effectively reversing from the old trade to the new trade if the new order is filled. I've got the code in thestrategy Script to enter the new orders, but it appears the new orders are ignored while the previous ASM strategy is open. Is there an easy way to automate entering reversal limit orders while the previous ASM trade is still open? Since the new entry would be on a limit just doing an ASMStrategyClose() would probably be premature...

    Thanks.



    #2
    imported post

    Hi,

    Unfortunately that is the current limitation of the AsmMethods within the strategy class. You could access our ATI directlywhich has more functions that allow you to do what you want.

    Or, you could run the strategy tick by tick and simulatetriggering an AsmStrategyClose() then AsmStategyCreate() when a specific price is reached, of course you would get slippage with the market order.

    Ray
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by trilliantrader, 04-18-2024, 08:16 AM
    5 responses
    22 views
    0 likes
    Last Post trilliantrader  
    Started by Davidtowleii, Today, 12:15 AM
    0 responses
    3 views
    0 likes
    Last Post Davidtowleii  
    Started by guillembm, Yesterday, 11:25 AM
    2 responses
    9 views
    0 likes
    Last Post guillembm  
    Started by junkone, 04-21-2024, 07:17 AM
    9 responses
    69 views
    0 likes
    Last Post jeronymite  
    Started by mgco4you, Yesterday, 09:46 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X