Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Keeps Entering Short When Enabled

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

    Strategy Keeps Entering Short When Enabled

    Hello,
    I tried to modify an existing strategy code and it kept entering a short position when I enabled it. I then decided to remove the modified code and restored the original code but it still continued to enter short position. What could be the problem? Please help.
    Attached Files
    Last edited by GCavan80; 11-17-2023, 01:23 AM.

    #2
    Hello GCavan80,

    Welcome to the NinjaTrader forums!

    The script you have provided a screenshot of is still showing EnterShort() on line 92.

    Once this is removed, compile script, and reload NinjaScript on the chart.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you so much for answering that for me, Chelsea!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by WHICKED, 06-27-2023, 12:07 PM
      86 responses
      872 views
      1 like
      Last Post WHICKED
      by WHICKED
       
      Started by junhan11, Today, 10:24 PM
      0 responses
      1 view
      0 likes
      Last Post junhan11  
      Started by rene69851, 06-18-2024, 08:36 PM
      2 responses
      11 views
      0 likes
      Last Post rene69851  
      Started by junhan11, Today, 10:03 PM
      0 responses
      1 view
      0 likes
      Last Post junhan11  
      Started by junhan11, Today, 09:41 PM
      0 responses
      1 view
      0 likes
      Last Post junhan11  
      Working...
      X