Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Wizard TP = SL*2

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

    Strategy Wizard TP = SL*2

    Hey guys,
    I'm not much of a programmer, which is why I love NT's Strategy Wizard. I'm having a problem. I'm trying to set the SL for the high of the last bar before the entry bar + 1 tick. Then, set the TP as twice the value of the SL, to insure a 1:2 Risk:Reward.
    I've tried it all the different ways I've been able to find through searching the forum and what not, but nothing is producing results on the SL, and I have no idea where to start with the TP.
    I've tried:
    -Setting Variable0 as High[1] + .0001 (in price mode, also tried High[0])
    Then setting the stop loss for Variable0 in price mode

    -Setting Variable0 as High[1] + 1*TickSize (in tick mode, also tried High[0])
    Then setting the stop loss for Variable0 in tick mode

    -The improvised route of: If ask > variable0, exit short

    Those didn't work, and I'm stumped.

    Thanks in advance.
    Attached Files
    Last edited by PipJaeger; 12-18-2011, 02:29 PM. Reason: Forgot pictures

    #2
    PipJaeger,

    I am happy to assist you.

    Using the strategy wizard will only set the stop loss for all orders once. You would need to program this unfortunately. You can do so simply by moving the SetStopLoss() method from the Initiailize() method to the OnBarUpdate() method where your order conditions take place.

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      I think you completely misunderstood me. I didn't say that I would be resetting the stop loss several times, I just said that it will be the previous bar (to the entry bar) +1 tick. Can you please explain how the rest of my question can be done?

      Comment


        #4
        Hi PipJaeger,

        Unfortunately this will require working with code, as you need access to method BarsSinceEntry(), which is just not available for use in any "bars ago" type condition in the wizard.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        368 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        571 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X