Any help is appreciated.
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
Only enter when Tick Counter Indicator is greater than certain value
Collapse
X
-
Only enter when Tick Counter Indicator is greater than certain value
I'm trying to build a strategy using the wizard in which it only enters orders when the Tick Counter is above 500. I'm using ES 2000 tick and the strategy is set to CalculateOnEachTick. Right now, my strategy condition reads Tick Counter greater than numeric value 500 and when I try to enable the strategy in the Playback Connection by checking the box, it will immediately uncheck. I have tried both the Standard and High setting for order fill resolution and they had the same results.
Any help is appreciated.Tags: None
-
Hello dominus158,
Thank you for your post.
You can't get the number of ticks remaining in the bar from the Tick Counter indicator because it doesn't expose that value for use in a custom NinjaScript, nor would you be able to get this value in the Strategy Builder. You'd need to unlock the code and use Bars.TickCount to get the current number of ticks in a bar and enter if that's greater. Here's a link to our help guide going over Bars.TickCount:
Please let us know if we may be of further assistance to you.
Kate W.NinjaTrader Customer Service
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by yertle, Yesterday, 08:38 AM
|
7 responses
28 views
0 likes
|
Last Post
by yertle
Today, 12:15 AM
|
||
Started by bmartz, 03-12-2024, 06:12 AM
|
2 responses
21 views
0 likes
|
Last Post
by bmartz
Today, 12:11 AM
|
||
Started by funk10101, Today, 12:02 AM
|
0 responses
4 views
0 likes
|
Last Post
by funk10101
Today, 12:02 AM
|
||
Started by gravdigaz6, Yesterday, 11:40 PM
|
1 response
9 views
0 likes
|
Last Post Yesterday, 11:49 PM | ||
Started by MarianApalaghiei, Yesterday, 10:49 PM
|
3 responses
11 views
0 likes
|
Last Post Yesterday, 11:33 PM |
Comment