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

closing positions before end of day

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

    closing positions before end of day

    Hey Team,
    I just wanted to know does the bot close positions at the end of the day due to margin violations? or is there a way to force the bot to close all positions at a time?

    #2
    Hello RookieKiwi,

    Thank you for your note.

    A strategy will be set to close any open positions if the Break at EOD checkbox is set to true. However, it will not keep the strategy from opening new positions after the Break at EOD logic has triggered, so it's good practice to use time filter conditions to only allow your strategy to enter/exit during specific times if you're worried about carrying positions overnight.. If you're getting closed out of positions at the end of the day due to margin violations, this can occur if you don't close your position and do not meet overnight margin requirements to maintain your position. I would advise checking with your broker for the overnight margin requirements for the particular instruments you trade. Trades closed in this manner (by the broker) would show up as "External".

    You can also turn on the function that will close all positions and shut down any running strategies at a specific time you've set. This would close you out of any open positions at the time you specify as well as terminate your running strategies so they do not continue trying to take positions after this occurs:



    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by popecapllc, 08-09-2023, 07:42 PM
    11 responses
    1,873 views
    0 likes
    Last Post tradgrad  
    Started by morrnel, 05-12-2024, 06:07 PM
    7 responses
    106 views
    1 like
    Last Post tradgrad  
    Started by mmike, Yesterday, 10:33 PM
    0 responses
    4 views
    0 likes
    Last Post mmike
    by mmike
     
    Started by Pole123, Yesterday, 06:02 PM
    0 responses
    8 views
    0 likes
    Last Post Pole123
    by Pole123
     
    Started by samish18, Yesterday, 05:27 PM
    0 responses
    5 views
    0 likes
    Last Post samish18  
    Working...
    X