How do i keep the evalutions of the condtions from even being looked at until after the trading time window opens
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
Trigger outside Trading Times set
Collapse
X
-
Trigger outside Trading Times set
I have an issue trying to figure out Why or what I need to do so solve this issue. I have a trading start time and a trading stop time. My conditions are meet prior to the trading time window. The orders are held until the trading time window is reached and then sent.
How do i keep the evalutions of the condtions from even being looked at until after the trading time window opensTags: None
-
Hello DTSSTS,
Thank you for your note.
You could check the times before processing other items and if it's not within that time period, return so nothing else is processed until you're in that window. So, something like:
if (Time[0] > MyStartTime && Time[0] < MyEndTime)
{
//your logic goes here
}
else
{
return;
}
This would keep other conditions in your logic from being checked unless the time is within your defined period.
Please let us know if we may be of further assistance to you.Kate W.NinjaTrader Customer Service
-
that is what i am doing on the conditions area that is checked to send orders, but i am not doing that in the areas that some of rules (other conditions) are checked to see if there respective logic is true.
SO YOU ARE SAYING i need the time code on every area rules or logic is being considered/checked
thanks
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by helpwanted, Today, 03:06 AM
|
1 response
10 views
0 likes
|
Last Post Today, 03:35 AM | ||
Started by Brevo, Today, 01:45 AM
|
0 responses
7 views
0 likes
|
Last Post
by Brevo
Today, 01:45 AM
|
||
Started by aussugardefender, Today, 01:07 AM
|
0 responses
5 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
242 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
385 views
1 like
|
Last Post
by Gavini
Today, 12:29 AM
|
Comment