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

    Comment


      #3
      email sent.. thank you

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      51 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      128 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X