Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SetProfitTarget not filling when touched historically

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

    SetProfitTarget not filling when touched historically

    I am using the SetProfitTarget in a simple strategy with historical data imported from TS. The problem is that it is not filling the order when the price is touched, rather it fills only when a bar goes thru the profit target. I'm using the ES, 1-min chart.

    IOW, I'm long in a position from 1103.00, then a future bar's high touches my target of 1105.00 but it does not fill. Then a subsequent bar's high is 1105.50 and the order fills. But it should have filled at the first bar with the high of 1105.00

    I turned on "TraceOrders=true;" to confirm my orders are placed and working, just not filling.

    I'm using the "
    SetProfitTarget (
    "NewShort",CalculationMode.Ticks,8);
    on the ES 1-min chart.

    Is there a setting to tell NT to fill the historical profittarget orders when touched?

    #2
    terabyte, yes, please change your Historical Fill processing to use the 'Liberal' fill type -

    Comment


      #3
      Thank you. I tried that earlier but must have fogotten to click on "Apply". It is working correctly now.

      Comment


        #4
        Is there a compiler directive to set it to "Liberal" fills in my script?

        Comment


          #5
          Great, unfortunately setting this programmatically is not supported terabyte.

          Comment


            #6
            Bertrand,

            Would you please ask development staff to consider adding script compiler support for all the settings that are available manually in the strategy dialogue. It would make life so much easier for many of us to have consistent settings (my 'sometimers' is kicking in more often now that I am older than I was last week)

            TIA!
            Jon

            Comment


              #7
              Thanks for the suggestion Jon - in our currently in beta NT7 you can right click on your strategy parameters and save them to a default template automatically used on next start of this strategy.

              Comment


                #8
                Bertrand,

                I have used that feature, and I do appreciate it: I was thinking more in that it is only 1 (ONE) default that is currently available. I would have to rename and recompile (rant mode on ;( ) 100 strategies to use 100 different defaults, because the settings cant be named anything, they are just the defaults. (rant OFF ) Where as if I could (optionally) do it within the strategy itself, there would be less room for error and easier to verify what the settings were, and also 'lock' them as a runnable exportable strategy with no user interventions ... just a thought

                Thanks,
                Jon

                Comment


                  #9
                  Thanks Jon, I see your point, so basically an option for multiple strategy settings templates like we have for example in the Fibonacci drawing studies.

                  Comment


                    #10
                    Bertrand,

                    My preference is more like the style of saving different workspaces or strategies.

                    Thanks for your consideration of my request,
                    Jon

                    Comment


                      #11
                      Ok, thanks for clarifying Jon.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                      0 responses
                      647 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      368 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      108 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      572 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      573 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X