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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      144 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      71 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      125 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      79 views
      0 likes
      Last Post PaulMohn  
      Working...
      X