Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.

                  Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.


                  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 stafe, 04-15-2024, 08:34 PM
                    7 responses
                    31 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Started by adeelshahzad, Today, 03:54 AM
                    4 responses
                    29 views
                    0 likes
                    Last Post adeelshahzad  
                    Started by merzo, 06-25-2023, 02:19 AM
                    10 responses
                    823 views
                    1 like
                    Last Post NinjaTrader_ChristopherJ  
                    Started by frankthearm, Today, 09:08 AM
                    5 responses
                    17 views
                    0 likes
                    Last Post NinjaTrader_Clayton  
                    Started by jeronymite, 04-12-2024, 04:26 PM
                    3 responses
                    43 views
                    0 likes
                    Last Post jeronymite  
                    Working...
                    X