![]() |
|
|||||||
| Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Oct 2011
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
|
Sorry about the basic question.
I have a standard MA crossover strategy coded. Presently the exit is after another cross in the opposite direction.and I would like to change it to a target of X ticks with a trail of X ticks with an option for changing it according to market volatility. Would someone be kind enough to tell me how. Thank you.
Last edited by ntosc; 10-25-2011 at 07:10 AM.
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,499
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
Thanks for the note. The best way most likely to do this is to have 2 different strategies. Keep your original and enable this if market volatility suits this style of strategy. Create a copy of your current strategy by going to the strategy wizard and go to view code button. Then right click on the code and select Save As. Give it a new name and then re open it via the control center->tools->Edit NinjaScript. Once this is done go back into the strategy wizard and go to the stops and targets page. Add in a profit target and a stop loss following these instructions. You can add in a basic trail stop here as well. http://www.ninjatrader.com/support/h...rd_screens.htm Understanding the Stops and Targets screen
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#3 | |
|
Senior Member
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ninjascript help | kishisaki | Strategy Development | 3 | 10-08-2010 12:46 PM |
| NinjaScript and C# | trader2be | General Programming | 1 | 08-26-2010 09:59 AM |
| Can this be done via Ninjascript? | lookOutBelow | General Programming | 3 | 07-13-2010 08:52 PM |
| Help with ninjascript | mattismyth | Indicator Development | 2 | 03-13-2009 06:56 PM |
| Need Help with NinjaScript | duckfan312 | Strategy Development | 1 | 10-31-2008 08:06 AM |