Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

strategy is going long when its programmed short

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

    strategy is going long when its programmed short

    i have a set of cl strategies going haywire. i have strategies on timeframes 15,5, and 2. on nq, si, cl, es. and only on the 15 minute cl the trades are going long.

    and i have a stop loss at 5 ticks. but they are all going 50 ticks or more
    Attached Files
    Last edited by SteveReiza; 01-31-2024, 04:30 AM.

    #2
    Hello SteveReiza,

    Thank you for your post.

    To better understand your strategy's behavior and narrow down what part of your logic is causing it to go Long, have you enabled Trace Orders and added prints? If you have not done so yet, please review the information on the following guide and then review the output after enabling Trace Orders and adding prints:



    The information in the NinjaScript Output window should be useful to identify when it is going long and understand why so you may modify your strategy as needed. You may generate the output by running a backtest in the Strategy Analyzer or even running your strategy over the same time period in the Playback connection.

    If you are unsure of the meaning of the output, you may save it to a text file by right-clicking the NinjaScript Output window then selecting Save As. Then, the text file may be attached to your reply here so we may assist you further and guide you through the next steps of debugging unexpected behavior.

    Please let us know if we may be of further assistance.

    Comment


      #3
      okay, sweet. i'll check into print and see how i can dial in from there. many thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      557 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      324 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      545 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X