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 naanku, Today, 07:25 PM
        0 responses
        5 views
        0 likes
        Last Post naanku
        by naanku
         
        Started by milfocs, Today, 07:23 PM
        0 responses
        3 views
        0 likes
        Last Post milfocs
        by milfocs
         
        Started by PaulMohn, Today, 06:59 PM
        0 responses
        7 views
        0 likes
        Last Post PaulMohn  
        Started by bortz, 11-06-2023, 08:04 AM
        48 responses
        1,752 views
        0 likes
        Last Post carnitron  
        Started by Jonker, 04-27-2024, 01:19 PM
        3 responses
        24 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X