Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Emily C.NinjaTrader Customer Service

    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 burtoninlondon, Today, 12:38 AM
      0 responses
      10 views
      0 likes
      Last Post burtoninlondon  
      Started by AaronKoRn, Yesterday, 09:49 PM
      0 responses
      14 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Yesterday, 08:42 PM
      0 responses
      11 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Yesterday, 07:51 PM
      0 responses
      13 views
      0 likes
      Last Post strategist007  
      Started by StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,983 views
      3 likes
      Last Post jhudas88  
      Working...
      X