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

I have a separate Set for exiting at certain times

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

    I have a separate Set for exiting at certain times

    Hi,

    I am testing a separate Set in Strategy Builder to exit at certain times to be flat for a few min before resuming trading.

    These are set to "If Any" in one Set and exit Longs and "If Any" in another Set to exit Shorts.

    This is for example 8:29 am est and 9:59, and 10:29 est along with a few other times in the afternoon.

    See here what is happening https://www.screencast.com/t/qLLvABgdb (it is Exiting 1 which is for me Set but it is also doing Close Position too...do it ends up putting me net in a position the opposite direction.

    How do you think I can fix this?

    I am also continuing to review more too.

    Thanks.

    Greg


    #2
    Hello, thanks for writing in. The "Close Position" signal typically comes from auto-reversal, as in, the strategy calls EnterLong(), then EnterShort() to reverse. The strategy needs to call ExitLong or ExitShort to just close the current position and not reverse.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SnailHorn, Today, 10:49 PM
    0 responses
    4 views
    0 likes
    Last Post SnailHorn  
    Started by naanku, Today, 07:25 PM
    0 responses
    8 views
    0 likes
    Last Post naanku
    by naanku
     
    Started by milfocs, Today, 07:23 PM
    0 responses
    6 views
    0 likes
    Last Post milfocs
    by milfocs
     
    Started by PaulMohn, Today, 06:59 PM
    0 responses
    8 views
    0 likes
    Last Post PaulMohn  
    Started by bortz, 11-06-2023, 08:04 AM
    48 responses
    1,756 views
    0 likes
    Last Post carnitron  
    Working...
    X