Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8 order error opening two orders - one to close and one on the next signal

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

    NT8 order error opening two orders - one to close and one on the next signal

    Good afternoon,
    I am confused as to why this is happening:

    Click image for larger version

Name:	error.png
Views:	73
Size:	80.5 KB
ID:	1302880

    you can see a close position and then the one I added named CloseWaddahSell

    here is the open and closing code:

    Code:
                 // Set 1
                if ((CanTrade && WaddahAttarExplosion1.WaddahColor==1 || WaddahAttarExplosion1.WaddahColor==2)
                     && (CCI1[0] > 0)
                     && (ParabolicSAR1[0] < Close[0]))
                {
                    EnterLong(Convert.ToInt32(DefaultQuantity), @"WaddaBuy");
                }
                
                 // Set 2
                if ((CanTrade && WaddahAttarExplosion1.WaddahColor==3 || WaddahAttarExplosion1.WaddahColor==4)
                     && (CCI1[0] < 0)
                     && (ParabolicSAR1[0] > Close[0]))
                {
                    EnterShort(Convert.ToInt32(DefaultQuantity), @"WaddahSell");
                }
                
                                    }
                
                 // Set 3
                if( (Close[0] < ParabolicSAR1[0]) && (Position.MarketPosition == MarketPosition.Long) )
                {
                    ExitLong(Convert.ToInt32(DefaultQuantity), @"CloseWaddaBuy", @"WaddaBuy");
                }
                
                 // Set 4
                if ((Close[0] > ParabolicSAR1[0]) && (Position.MarketPosition == MarketPosition.Short))
                {
                    ExitShort(Convert.ToInt32(DefaultQuantity), @"CloseWaddahSell", @"WaddahSell");
                }​
    the only stop-loss is

    Code:
    SetStopLoss(CalculationMode.Currency, 1000);
    Please advise

    Thank you.

    #2
    Thank you. Entering long after exiting short is ok.. My issue is with the two closings.. one close and one mine

    Click image for larger version

Name:	error 2.png
Views:	62
Size:	72.2 KB
ID:	1302890

    Comment


      #3
      email sent.. thank you

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by kinfxhk, 07-13-2026, 10:18 AM
      0 responses
      58 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 09:50 AM
      0 responses
      41 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 07:21 AM
      0 responses
      46 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-11-2026, 02:11 AM
      0 responses
      37 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      156 views
      0 likes
      Last Post SalmaTrader  
      Working...
      X