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:	70
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:	57
Size:	72.2 KB
ID:	1302890

    Comment


      #3
      email sent.. thank you

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      163 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      82 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      125 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      206 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      184 views
      0 likes
      Last Post CarlTrading  
      Working...
      X