Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Order gets Bumped

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

    Strategy Order gets Bumped

    Hello,

    I have a Strategy I created that has one Target, and one Stop. When I run the strategy on a chart and as a signal comes up and the order gets filled and the Target and the Stop show up on the chart... no problem... What happens next has me stumped.. While I'm waiting to see if the order gets filled, or gets stopped out, or I cancel the order myself another signal comes up ( to go Long or Short ), and the current order gets bumped for the new one..!
    You would think until the order does get filled, or does get stopped out, or I cancel or end the order myself the order would stay put on the chart... Why does one order get bumped for a new one??
    What can I do??

    Thanks Michael
    Last edited by Mykro; 07-28-2019, 02:58 PM.

    #2
    Hello Michael,

    If the order is being submitted again before it fills using the same signal name it will be modified using the new information.

    The script logic would need to see the order has already been submitted and suppress new order submissions.

    Below are a few examples that place exit orders and then wait up date them util specific times.
    https://ninjatrader.com/support/foru...269#post802269
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Chelsea,

      Thank You for the examples.. But I'm new to anything having to do with programming ... I'm a new user of Ninjatrader, Ninjascript, etc.. since the middle of this May.. I'm struggling with the learning curve regarding the day trading world as I am with Ninjatrader, and especially with Strategy Builder..
      If it wasn't for Pablo Maglios "Do it yourself" videos I'd be really lost..!! Unless there are "step by step" videos I'm lost...

      Thanks Michael

      Comment


        #4
        Hello Michael,

        Unfortunately, the videos we have show how to use the Strategy Builder and NinjaScript Editor but we do not have videos that teach programming.

        Below is a link to a forum post with helpful information about getting started with NinjaScript.
        https://ninjatrader.com/support/foru...040#post786040

        You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our business development follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Chelsea, Isn't there a work around using the Bulider..??

          This has to do with the Slope of a line... What I need is a way to get a single entry signal at the end of a trend, and at the begining of the next trend.. Where the down Slope of a line ends, and the begining of the next up Slope begins.. An Arrow right in the middle of the two would be ideal...
          I understand and can do the Slope of a line and do Thresholds in the Builder.. no problem..

          Thanks Michael

          Comment


            #6
            Hello Michael,

            With the strategy builder, orders must be resubmitted to be kept alive. Set the prices to variables so these prices are re-used.

            Below are examples made with the strategy builder.
            https://ninjatrader.com/support/foru...596#post806596
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              The variables in Strategy Builder cannot be changed by the most simple of methods. I merely want to add 4 points to a variable, but I cannot do it. I also cannot add 4 points as part of an "If" equation (For example: IF price/close > "TrailingStopVariable" + 4). Variables that cannot be changed by simple arithmetic after created? Must we learn a programming language in order to do this much? I pay a premium for strategy builder, rather than to code. What am I paying for when it is severely deficient?
              Last edited by ronaldgreene828; 08-09-2019, 09:34 AM.

              Comment


                #8
                Hello ronaldgreene828,

                Thank you for your post.

                I am able to set up order offsets based on ticks in the Strategy Builder. Can you attach a screenshot of the Conditions and Actions tab of your Strategy Builder for the strategy that this is not working in?


                To send a screenshot with Windows 7 or newer I would recommend using the Windows Snipping Tool.

                Click here for instructions: https://support.microsoft.com/en-us/...#1TC=windows-8

                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 detailed instruction: https://www.java.com/en/download/faq/screenshot.xml,

                I look forward to assisting you further.

                Comment


                  #9
                  Thanks for your reply. I realize that I can offset the price in a comparison with a variable. But when comparing one variable
                  to another, I haven't found a way to do this. I also cannot set the value of one variable based on the offset of another. I attached an example in screenshots. Click image for larger version

Name:	Screenshot (62).png
Views:	37
Size:	125.0 KB
ID:	1066856 I set a variable for bar range by subtracting the low from the high. I would like to set another variable at 80% of the bar range variable.
                  Attached Files

                  Comment


                    #10
                    Hello ronaldgreene828,

                    Thank you for the clarification.

                    I will forward your suggestion to our development team for possible implementation in a future release of NinjaTrader.

                    Comment


                      #11

                      Hello,

                      Thanks for your patience.

                      The internal tracking number for your feature request is SFT-2059. Please reference this internal tracking number if you ever have questions regarding this feature request.

                      When a feature request is implemented, you'll find it in the release notes:

                      http://ninjatrader.com/support/helpG...ease_notes.htm

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by t.kelly4149, Today, 05:36 PM
                      1 response
                      8 views
                      0 likes
                      Last Post bltdavid  
                      Started by SilverSurfer1, Today, 06:29 PM
                      0 responses
                      16 views
                      0 likes
                      Last Post SilverSurfer1  
                      Started by trader3000a, Today, 01:06 PM
                      1 response
                      9 views
                      0 likes
                      Last Post NinjaTrader_ShawnB  
                      Started by marcus2300, Today, 11:45 AM
                      3 responses
                      31 views
                      0 likes
                      Last Post marcus2300  
                      Started by pel11, Today, 11:06 AM
                      0 responses
                      13 views
                      0 likes
                      Last Post pel11
                      by pel11
                       
                      Working...
                      X