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

    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 andrewtrades, Today, 04:57 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by chbruno, Today, 04:10 PM
      0 responses
      5 views
      0 likes
      Last Post chbruno
      by chbruno
       
      Started by josh18955, 03-25-2023, 11:16 AM
      6 responses
      436 views
      0 likes
      Last Post Delerium  
      Started by FAQtrader, Today, 03:35 PM
      0 responses
      7 views
      0 likes
      Last Post FAQtrader  
      Started by rocketman7, Today, 09:41 AM
      5 responses
      19 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X