Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Short position not exiting on short version of strategy DmiMA

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

    Short position not exiting on short version of strategy DmiMA

    I downloaded a strategy DmiMA from the ecosystem files share - which was long only.

    Not being much of a developer I attempted to create as a first pass a separate Short only version for further incorporation into one long/short script.

    I reversed the logic and literally spent hours trying to figure out why it will not exit a short position.

    This strategy is also using generic global variables (Variable0,1,2,3) which I'd not seen before and further confuses the code.

    I suspect it's something obvious and would appreciate a fresh pair of eyes if anyone would be so kind.

    If anyone has any ideas on suggesting a sample strategy that has shown some reasonable possibility as a starting point of being successful on intraday STX Indices it would be greatly appreciated.

    Thank you
    glen
    Attached Files

    #2
    Hello glen,

    Do you have TraceOrders enabled?

    Are there trace order messages stating that an order was ignored or cancelled?

    Are you printing the order object in OnOrderUpdate()?

    Do you have a print when the exit order is being submitted?

    If you are not debugging the script using Print() and TraceOrders to understand the behavior, please see the thread below with instructions.


    Are you using a signal name with the entry? Does the from Entry Signal of the exit match the signal name of the entry?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Chelsea,

      Thanks for the suggestions. Perhaps I should have tried those first instead of posting. Can you please delete the post as thought I was able to previously.

      glen

      Comment


        #4
        Hello demarcog,

        Threads generally are not deleted as they can continue to provide information for others that may be having the same issue.

        If you are determined to have it removed, let me know and I will make that happen.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        86 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        151 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        79 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        53 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        61 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X