Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Not closing of orders after Stop

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

  • WenisCR
    replied
    Hi Chris, how are you doing?
    Got it, thanks for the info and even more for the correction tip. I'll test it and report back.
    Thanks a lot for the help.​

    Leave a comment:


  • NinjaTrader_ChrisL
    replied
    Hello, thanks for writing in. The first adjustment you should make to this strategy is not using "EntryOrder" for both your long and short entries. Make a separate "EntryOrder" for long or short entries. I am not going to debug this script, but I am thinking the issue you are seeing is coming from mixing up orders in this way. I tested the OnOrderUpdate example that we have by simply changing the entry order quantity to 2 and this is working fine:

    Leave a comment:


  • WenisCR
    started a topic Not closing of orders after Stop

    Not closing of orders after Stop

    Hello good afternoon.

    I have a problem, I have a well defined strategy with entry, stop and target. For example, if the defined parameters are true, the entry is made with (2 contracts), also defining the stop and target with (2 contracts).

    But the problem faced is that when going to the stop the entry is canceled correctly but it remains only (1 contract) of the target remains active and I have to close it manually.

    Below I made the code available via Google Drive, would you have any idea what might be happening?

    Thanks in advance for your help.
    Last edited by WenisCR; 04-05-2023, 12:49 PM.

Latest Posts

Collapse

Topics Statistics Last Post
Started by shepherdangelique, Today, 07:27 PM
0 responses
5 views
0 likes
Last Post shepherdangelique  
Started by kvakana, Today, 03:38 PM
1 response
14 views
0 likes
Last Post NinjaTrader_Erick  
Started by burtoninlondon, 09-16-2021, 10:11 AM
13 responses
1,735 views
1 like
Last Post Bullero
by Bullero
 
Started by emiferariz, Today, 04:44 PM
0 responses
7 views
0 likes
Last Post emiferariz  
Started by Kraken29, Today, 04:16 PM
1 response
10 views
0 likes
Last Post NinjaTrader_Clayton  
Working...
X