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

Daily stop by asset

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

    Daily stop by asset

    What is the situation, guys? I would love to know if you have a video that explains how to make a daily stop according to
    asset for the purpose of the example with 6B. If it reaches a loss of 250, it closes automatically, and for 6E, if it reaches a loss of 200, it closes automatically.

    Please help me, guys. I need your help.​

    #2
    Hello niso55,

    If you wanted to implement a daily stop in your strategy you would need to add logic which submits a stop order or exit order. A strategy can trade one or more instruments, in a multi instrument strategy you would need to submit the order to the correct bars in progress for the instrument. It may be more simple to apply 1 strategy per instrument so you don't have to deal with multi series logic.

    You can find a sample of using trade performance values to control trading in the following link. The same type of logic would be used if you wanted to exit after a certain amount of loss was observed. https://ninjatrader.com/support/help...nce_statis.htm
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hi I would love a guide in the video if you have how to help me it would be really good . I just don't understand that much

      Comment


        #4
        Hello niso55,

        To use the performance values we only have code samples, there are no videos going over that which I could provide. There are additional strategy builder samples for this concept for NT8, for nt7 there are limited resources on this topic.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Please help me find a simple stop strategy that with the asset reaches X loss it will close my position
          I have an example from someone​​

          Click image for larger version

Name:	image.png
Views:	91
Size:	383.9 KB
ID:	1284336​​
          Attached Files

          Comment


            #6
            Hello niso55,

            From the image that appears to be NT8, you can find a sample of working with trade performance to stop trading in the following link. That would be the same kind of logic that would be needed if you wanted to exit a position after an amount of loss.

            JesseNinjaTrader Customer Service

            Comment


              #7
              Click image for larger version

Name:	image.png
Views:	76
Size:	31.7 KB
ID:	1284463
              Where exactly should I record the loss from the end I want to receive ​

              Comment


                #8
                Hello niso55,

                You would need to edit the code from that sample to change the values for the loss. That sample does not have any kind of user input for loss, its just a sample of the code required to do that type of task.
                JesseNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by fx.practic, 10-15-2013, 12:53 AM
                5 responses
                5,406 views
                0 likes
                Last Post Bidder
                by Bidder
                 
                Started by Shai Samuel, 07-02-2022, 02:46 PM
                4 responses
                98 views
                0 likes
                Last Post Bidder
                by Bidder
                 
                Started by DJ888, Yesterday, 10:57 PM
                0 responses
                8 views
                0 likes
                Last Post DJ888
                by DJ888
                 
                Started by MacDad, 02-25-2024, 11:48 PM
                7 responses
                160 views
                0 likes
                Last Post loganjarosz123  
                Started by Belfortbucks, Yesterday, 09:29 PM
                0 responses
                9 views
                0 likes
                Last Post Belfortbucks  
                Working...
                X