Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How does Stop and Target screen in Strategy Wizard suppose to work?

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

    How does Stop and Target screen in Strategy Wizard suppose to work?

    I created a strategy using custom indicator via wizard and also made sure I select "Stops and targets" for stop loss or trailing stop. I did not write any custom code in the strategy itself, just used the wizard to keep it simple. When I backtest this strategy, the stop loss does not seem to work at all for any symbol. Am I missing anything? Do I absolutely need to add any code for it to work?

    How is this part of the strategy suppose to work using only the wizard!!!!

    Following code got generated using the wizard:
    protected override void Initialize()
    {
    SetStopLoss("Buy", CalculationMode.Percent, 2, true);
    SetTrailStop("Buy", CalculationMode.Percent, 2, true);

    CalculateOnBarClose = true;
    }

    Any help is appreciate and thank you for your support.

    #2
    Thank god I could resolve this one...

    I found out from another post that the Stop Loss or Trailing stop "percent" should not be entered as "2" percent instead it should be entered as "0.02"

    Seems simple enough solution but unfortunately NO documentation exits for this in the help guide. Again thanks for the forum....

    Comment


      #3
      Originally posted by isitpossible View Post
      I found out from another post that the Stop Loss or Trailing stop "percent" should not be entered as "2" percent instead it should be entered as "0.02"

      Seems simple enough solution but unfortunately NO documentation exits for this in the help guide. Again thanks for the forum....
      Hello,

      Thank you for reporting.

      Have a great day and happy trading!
      Ray S.NinjaTrader Customer Service

      Comment


        #4
        isitpossible, great you got it resolved - please check into this link -> http://www.ninjatrader-support.com/H...tStopLoss.html

        Comment

        Latest Posts

        Collapse

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