Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy fails to reverse a trade

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

    Strategy fails to reverse a trade

    My strategy fails to book a long trade when there is an existing short trade. This is the last entries in the logs/Executions.txt :

    Code:
    2010-01-20 13:31:54:146	28f6bf1a96284355af97689f746d17fe	3ba462af43e546adb90ee1cfde178eaf	0	False	Default	YM 03-10 Globex	True	Short	Close position	9005cb8b1eb0411e97f2e9001627cf1b	2010-01-20 13:31:54:146	Hosted	1	10484	c13b6f02c379473183b816d705a2c145
    2010-01-20 13:31:54:156	9e291ae28466473f83fabf3ceed167e5	3ba462af43e546adb90ee1cfde178eaf	0	False	Default	YM 03-10 Globex	True	Short	sell	e3ae95d5ec13403380fc93ebdc16bec6	2010-01-20 13:31:54:156	Hosted	1	10484	d260c081a20a4e0885d73dd5c52485f2
    and this is what I see in the output window:

    Code:
    1/20/2010 3:02:50 PM Entered internal PlaceOrder() method at 1/20/2010 3:02:50 PM: Action=Buy OrderType=Market Quantity=1 LimitPrice=0 StopPrice=0 SignalName='buy' FromEntrySignal=''
    1/20/2010 3:02:50 PM Ignored PlaceOrder() method at 1/20/2010 3:02:50 PM: Action=Buy OrderType=Market Quantity=1 LimitPrice=0 StopPrice=0 SignalName='buy' FromEntrySignal='' Reason='Exceeded entry signals limit based on EntryHandling and EntriesPerDirection properties'
    EntryHandling and EntriesPerDirection are set to default values.

    Is this normal or can it be a bug?

    Thanks,
    Tim

    #2
    Tim,

    Single series strategy? Please add your own prints to print out what exactly the strategy position is right before submitting your entry order. See what it evaluates out to be.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      my workaround has been to increase the "EntriesPerDirection" and it helped (perhaps along with syncposition = true). I check MarketPosition prior to placing trade so technically I neednt have had to do this but hey if this is what it takes then thats fine. It triggers now every time without a hitch.

      Comment


        #4
        Resolved

        Sorry, it was my fault so no bug here. I set the signal name in one part of the strategy and i wasn't using the same signal name to close the positions.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        601 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        347 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        559 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        558 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X