Could you help me with this?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to check if the current trading date
Collapse
X
-
How to check if the current trading date
I want to run a check with my strategy. I want to make an if statement that checks to see if today's date is later than 1/20/2022, if so return true, else, false and disable strategy.
Could you help me with this? -
Hello Conceptzx,
Thanks for your notes.
The CloseStrategy() method has a string signalName parameter that would be passed in. A signalName is used for entry/exit orders, and this is not the strategy name.
From the CloseStrategy() help guide:
The signalName will be used to identify the closing order. If no signal name exists or is null, "Close" will be substituted instead.
See the help guide documentation below for more information and sample code.
CloseStrategy(): https://ninjatrader.com/support/help...=CloseStrategy<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
58 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
34 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
197 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
362 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
282 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment