View Full Version : Complex ATM Strategies
Sidhartha
04-17-2008, 05:40 AM
Hi guys,
So far I've been concentrating on developing strategies. However, it's becoming obvious that I will also need to set up some ATM strategies for discretionary trades I execute.
I was hoping I may be able to set up ATM strategies within C# code and apply those to discretionary trades... Is this possible...? Because I have some quite complex trailing stop methodologies that need to be coded. Is it possible to apply these to discretionary trades...?
Many Thanks
NinjaTrader_Dierk
04-17-2008, 05:46 AM
Please consult the docs for the Atm.. methods
http://www.ninjatrader-support.com/HelpGuideV6/AsmStrategyActive.html
Sidhartha
04-17-2008, 08:34 AM
Thanks for that Dierk.
I'm still not quite clear on something. Clearly you can define and name an ATM strategy through the DOM. I assume you can also do this through code in C#...? If so, would a code created ATM strategy appear in the drop dow list in the DOM...? And would such a code created ATM strategy exist simply as a costom strategy within NT...?
If so, would I simply have to have the relevant strategy running in order to access the named ATM strategy in the DOM and use this ATM strategy in my discretionary trading...?
Just so I'm clear.
Many Thanks
NinjaTrader_Dierk
04-17-2008, 08:58 AM
Sorry I don't know, since I never tried. Please try using methods as per below.
Sidhartha
04-17-2008, 09:01 AM
Thank Dierk.
Anyone else got any experience of this...?? Josh maybe...?
Cheers.
NinjaTrader_Josh
04-18-2008, 01:04 AM
Hi Sidhartha,
When you use ATM from NinjaScript strategies you would make the corresponding ATM strategy beforehand. You make it in the DOM then the NinjaScript strategy will link up to it.
If you run the ATM by itself it will behave however the ATM was setup to behave. If you run the NinjaScript strategy it will call the ATM whenever you programmed it to and then the ATM will behave however it is programmed to.
Hope that helps.
Sidhartha
04-18-2008, 02:01 AM
Thanks Josh.
From the sounds of it I can't actually do what I want to do... which is effectively create an ATM strategy within C# code... and then access that via the DOM for discretionary trading.
Might be some fucntionality you want to add to the 'wish list'.
Thanks