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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      87 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      132 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      118 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      67 views
      0 likes
      Last Post PaulMohn  
      Working...
      X