Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninjascript not executing

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

    #16
    Could it be possible that having both {ExitLong() and ExitShort()} together may be "cancelling out". How may I change the logic to if(Position == Long) {ExitLong()}?

    Comment


      #17
      Hello samish18,

      Calling ExitLong() and ExitShort() at the same time is not going to cause an issue. There is only one position and the exit method that doesn't match the position will be ignored.

      There is an issue with calling an entry order and exit order at the same time.
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      71 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      143 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      76 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      47 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      51 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X