Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Couple of questions

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

    Couple of questions

    I have a couple of questions I could use some help with. Any insight would be greatly appreciated

    I am using the strategy wizard to work on my current strategy and I was wondering if there was a way to simultaneously close one position and open another. For example, my strategy will hold a position until a condition is met and it will then exit the position and enter a new position in two separate orders. So if I am long 50k, it will sell to close 50k, then sell 50k short to open a new position. Sometimes this causes me to lose a potential pip on the opening of the new position. Is there a way, using the strategy wizard, to instead have the strategy do one transaction for 100k that closes the open 50k and then opens the 50k short?

    Right now I am using a condition which uses if Unrealized P&L > $ do so and so. Is there a way for me to change that to Pips? If market price > Purchase price plus 2 pips then so and so?

    #2
    Kspot, this would unfortunately not be possible via the wizard interface, as the Enter() method would automatically do the reverse for you and this would be 2 part, first closing the open position and then opening the new one. You could though work via coding in our unmanaged mode that would just submit the 'raw' order without the convenience of the managed mode.

    Comment


      #3
      Thanks for the reply, anyway to accomplish my second goal through strategy wizard?

      Comment


        #4
        Sorry, must have missed it - you could check for the Close being greater for example than your Position.AvgPrice + an offset in ticks/pips. This item would be found in the strategy subcategory in the wizard as well.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        65 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        149 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X