Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

cut and reverse

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

    cut and reverse

    hi again !

    basically i want to be able to cut and reverse positions, this works fine on the sim but live is another story.

    say im short, i basically want to exit the short at market and then go long at market

    when the condition is met
    {
    ExitShort(); // exit short positions @ market and is ignored if none exist
    EnterLong();// initiates new long @ market
    }

    should do it but it doesnt

    it goes long effectively closing the position but then start working a buy stop order about 20 ticks above the market which isnt really of much use, If i just use EnterLong() it does exactly the same thing

    and the strategy thinks it's long when it isnt

    i get this in the log file
    30/01/2008 16:59:58 Default Cbi.Order.Cancel: exception caught: Value cannot be null.

    any help would be greatly appreciated

    #2
    - no need to exit the short position. NT does this for you as you enter a long position
    - please make sure you are on latest 6.5.0.8

    Comment


      #3
      yep im deffo on the latest installed it yesterday

      i knew that it should exit for me but its using limit orders instead of market and the limit price is way off, is there anyway you change this or would i have to modify/override the NT method?

      i think its using buy to cover to get out of the short and hence placing a long limit order at distance the stops are set to from the position when the system tried to cut and reverse
      Last edited by arilano; 01-30-2008, 11:51 AM.

      Comment


        #4
        NT closes the position with the same order type which you use to enter a new position. If you dislike this default behavior, then you would need to close out your position by custom orders (e.g. a market order).

        Comment


          #5
          but i use market orders to get into all my positions, i think its using buy to cover and placing a limit order the stop distance away from where the cut and reverse was triggered

          Comment


            #6
            Let me rephrase:
            NT closes the position with the same order type which you use to enter the new crossing over position.

            Comment


              #7
              sorry dierk i think im being abit dense, the new crossing over position is a market buy but its not exiting the existing short at market, instead i find a stray limit order miles away from the current bid/offer i think this is the exit order and the order that is actually flattening it is the new long market order

              :S

              Comment


                #8
                Not sure I follow. If the enter order on the opposite side of the market is a market order then the closing order for the existing position (marked as "Close position") will be a market order too and not a limit order.

                If you see a limit order then this must have been places by some other logic of your strategy in which event I suggest starting basic as possible in order to understand what's going on.

                Comment


                  #9
                  ok dierk thanks

                  thats what i thought the behaviour should be but i think ive got other issues, ive backed up my source code and im gonna reinstall the new beta again see if that helps, if not would it be possible to be supplied with the previous beta?

                  ill get back to you if i need anymore help
                  thanks again

                  Comment


                    #10
                    Unfortunately previous betas are not available.

                    Comment


                      #11
                      i think itll be alright after a complete fresh install and compilation
                      i'll resurface if im still having difficulties thanks again

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by kevinenergy, 02-17-2023, 12:42 PM
                      118 responses
                      2,778 views
                      1 like
                      Last Post kevinenergy  
                      Started by briansaul, Today, 05:31 AM
                      0 responses
                      9 views
                      0 likes
                      Last Post briansaul  
                      Started by traderqz, Yesterday, 12:06 AM
                      11 responses
                      28 views
                      0 likes
                      Last Post NinjaTrader_Gaby  
                      Started by PaulMohn, Today, 03:49 AM
                      0 responses
                      8 views
                      0 likes
                      Last Post PaulMohn  
                      Started by inanazsocial, Today, 01:15 AM
                      1 response
                      10 views
                      0 likes
                      Last Post NinjaTrader_Jason  
                      Working...
                      X