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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        59 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        144 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        161 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        283 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X