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:	65
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:	52
Size:	72.2 KB
ID:	1302890

    Comment


      #3
      email sent.. thank you

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      52 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      29 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      194 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      355 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      274 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X