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
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bmartz, 03-12-2024, 06:12 AM
        4 responses
        32 views
        0 likes
        Last Post bmartz
        by bmartz
         
        Started by Aviram Y, Today, 05:29 AM
        4 responses
        12 views
        0 likes
        Last Post Aviram Y  
        Started by algospoke, 04-17-2024, 06:40 PM
        3 responses
        28 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by gentlebenthebear, Today, 01:30 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by cls71, Today, 04:45 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X