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
identify which condition triggered the entry
Collapse
X
-
identify which condition triggered the entry
I have a couple different entry conditions in my script. is there a way (maybe a logfile or something) that tells you which condition caused the trade entry? i guess i can remove conditions and see if it still triggers to get to the bottom of which one is doing it. it's hard to tell from the chart because a couple of things happen very close to the same time.Tags: None
-
Hello PLeary,
Thank you for your post.
You can add a Print() statement to show information in the Output window (NinjaTrader Control Center > Tools > Output Window) regarding the order and condition and use Time[0] to see at what time on the chart this occurred.
For example:
Code:if(myConditionToEnter1) { EnterLong(); Print("My Condition 1 returned true and placed an Enter Long. " + Time[0]); }
For information on Time please visit the following link: http://www.ninjatrader.com/support/h...s/nt7/time.htm
Please let me know if I may be of further assistance.
-
Originally posted by PLeary View PostI have a couple different entry conditions in my script. is there a way (maybe a logfile or something) that tells you which condition caused the trade entry? i guess i can remove conditions and see if it still triggers to get to the bottom of which one is doing it. it's hard to tell from the chart because a couple of things happen very close to the same time.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Haiasi, Today, 06:53 PM
|
1 response
4 views
0 likes
|
Last Post Today, 07:05 PM | ||
Started by ScottWalsh, Today, 06:52 PM
|
1 response
12 views
0 likes
|
Last Post Today, 07:02 PM | ||
Started by ScottW, Today, 06:09 PM
|
1 response
5 views
0 likes
|
Last Post Today, 06:53 PM | ||
Started by ftsc2022, 10-25-2022, 12:03 PM
|
5 responses
256 views
0 likes
|
Last Post Today, 06:48 PM | ||
Started by Board game geek, 10-29-2023, 12:00 PM
|
14 responses
244 views
0 likes
|
Last Post
by DJ888
Today, 05:38 PM
|
Comment