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 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