Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Creating stop from strategy builder

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

    Creating stop from strategy builder

    Hello,

    Using Renko chart, I'd like to add to my strategy a stop under the low minus x ticks (high plus x ticks for short positions) of the last brick created when i had the entry signal. This initial stop stays at the same level as long as the position as not been closed by a trailing stop (based on an indicator). I know how to create the trailing stop but i cannot manage to create the stop under (above) "signal" brick with the strategy builder.

    Thanks for help.

    #2
    Hello Alf63,
    Thanks for your post.
    • How are you monitoring for your "signal brick"?
    • What have you tried so far in the Conditions and Actions section of the Strategy Builder? You can take a screenshot if you like.

    To send a screenshot with Windows 7 or newer I would recommend using Window's Snipping Tool.
    Click here for instructions

    Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.
    Click here for instructions

    I look forward to your reply.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Hello Josh,

      At the close of a "signal brick" i have a buy (or sell) signal to open a position (based on indicators). That's the difference between a "signal brick" and an ordinary brick. In conditions and actions, i have two sets for entering in the market (one for long and one for short) according to indicators and two sets for the trailing stops also based on indicators. When i try to build the initial stop loss (low or high of the "signal brick"), i arrive on a "string builder" window and at this point i do not know how to program this initial stoploss.

      Regards.

      AF
      Last edited by Alf63; 02-23-2018, 09:13 AM.

      Comment


        #4
        Hello Alf63,
        Thanks for your note.

        The "String Builder" window is asking you for the name of your entry signal. In this situation though the "Stops and Targets" section will not be the way to set your stop loss.

        There is not a way to use SetStopLoss() as an action to your "signal brick" condition in the Strategy Builder. So, if you are monitoring for your "signal brick" with indicators than you will need to configure those conditions appropriately before setting your stop loss with an Exit order.

        I suggest creating a variable that will store your stop loss value when the correct conditions are met. You can then pass that variable into your exit order to create the stop loss.

        Please let me know if you have any further questions.
        Josh G.NinjaTrader Customer Service

        Comment


          #5
          Josh,

          Thanks a lot. I suppose creating a variable to store the stoploss level (etc, ...) cannot be done in the strategy builder. I'll have to try to write C# code. Not so easy... I'm going to try...

          Alain

          Comment


            #6
            Hello Alf63,
            Thanks for your note.

            You can create a variable in the Strategy Builder from the Inputs and Variables page. I have gone ahead and created a quick video showing how this can be accomplished.

            https://www.screencast.com/t/a7qPFV9Gc0Ml

            Understanding the Inputs and Variables screen
            https://ninjatrader.com/support/help...ariablesScreen

            Please let me know if you have any further questions.
            Josh G.NinjaTrader Customer Service

            Comment


              #7
              Hello Josh,

              Awesome video and explanation!!!! It works without any problem!!

              Is this possible, using the strategy builder, to take into account the size of the renko brick (the distance between the stop and the low/high of the brick depends on renko brick size)?

              Thanks a lot.

              Alain

              Comment


                #8
                Hello Alain,

                Glad to hear you got your stop working how you would like. At this time it would not be possible to take renko brick sizes into account in the Builder.

                Please let me know if you have any further questions.
                Josh G.NinjaTrader Customer Service

                Comment


                  #9
                  Can you please perhaps re post the screencast video, the link in this message seems to currently be broken. https://www.screencast.com/t/a7qPFV9Gc0Ml

                  Thank you.


                  Originally posted by NinjaTrader_JoshG View Post
                  Hello Alf63,
                  Thanks for your note.

                  You can create a variable in the Strategy Builder from the Inputs and Variables page. I have gone ahead and created a quick video showing how this can be accomplished.

                  World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


                  Understanding the Inputs and Variables screen


                  Please let me know if you have any further questions.
                  Last edited by Daryl Haaland; 03-05-2018, 10:26 PM.

                  Comment


                    #10
                    Hello Darryl,
                    Thanks for your post.

                    I'm not sure why that video is no longer there. I remade it at the following link.
                    https://www.screencast.com/t/6vhsnsaeuj

                    Please let me know if you have any questions.
                    Josh G.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by NullPointStrategies, Today, 05:17 AM
                    0 responses
                    50 views
                    0 likes
                    Last Post NullPointStrategies  
                    Started by argusthome, 03-08-2026, 10:06 AM
                    0 responses
                    126 views
                    0 likes
                    Last Post argusthome  
                    Started by NabilKhattabi, 03-06-2026, 11:18 AM
                    0 responses
                    69 views
                    0 likes
                    Last Post NabilKhattabi  
                    Started by Deep42, 03-06-2026, 12:28 AM
                    0 responses
                    42 views
                    0 likes
                    Last Post Deep42
                    by Deep42
                     
                    Started by TheRealMorford, 03-05-2026, 06:15 PM
                    0 responses
                    46 views
                    0 likes
                    Last Post TheRealMorford  
                    Working...
                    X