Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ninjascript

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

    ninjascript

    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, 07:10 AM.

    #2
    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.


    Understanding the Stops and Targets screen
    BrettNinjaTrader Product Management

    Comment


      #3
      Originally posted by ntosc View Post
      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.
      Take a look at this, posted in 2009: http://www.ninjatrader.com/support/f...ad.php?t=23740

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      66 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      41 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      24 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      26 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      53 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X