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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        68 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        38 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X