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 ageeholdings, Today, 07:43 AM
      0 responses
      2 views
      0 likes
      Last Post ageeholdings  
      Started by pibrew, Today, 06:37 AM
      0 responses
      4 views
      0 likes
      Last Post pibrew
      by pibrew
       
      Started by rbeckmann05, Yesterday, 06:48 PM
      1 response
      14 views
      0 likes
      Last Post bltdavid  
      Started by llanqui, Today, 03:53 AM
      0 responses
      6 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      12 views
      0 likes
      Last Post burtoninlondon  
      Working...
      X