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?
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!
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
NinjaTrader
closing positions before end of day
Collapse
X
-
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?Tags: None
-
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
- Likes 2
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by brunoviveiros, 02-17-2020, 05:31 AM
|
4 responses
63 views
0 likes
|
Last Post Today, 06:25 AM | ||
Started by volIQ, 03-27-2024, 04:28 PM
|
3 responses
21 views
0 likes
|
Last Post
by RJay
Today, 05:41 AM
|
||
Started by Nickgiaco, 02-26-2024, 10:23 AM
|
2 responses
72 views
0 likes
|
Last Post Today, 05:12 AM | ||
Started by Johndc, Today, 04:39 AM
|
0 responses
8 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
11 views
0 likes
|
Last Post Today, 02:34 AM |
Comment