PDA

View Full Version : ASM Reversals from NinjaScript?


DarrylT
01-19-2007, 09:47 AM
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.

NinjaTrader_Ray
01-19-2007, 11:49 AM
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