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
Strategy firing too early
Collapse
X
-
Strategy firing too early
I'm having a problem with a strategy; the entry is triggering too soon. I have my hours reduced to the traditional pit times 0900-1500 and am using an EMA crossover. I have set minimum bars to trade at 20 but what happens is as soon as the trading hours turn on at 0900 I get a cross over from the data from the day before and a trade triggers. How do I keep this from happening? I want the strategy to wait for the specified bars to establish a trend from todays data and not be influnced by yesterdays.Tags: None
-
Hello GMiller64,
Thank you for your note.
Would you be able to provide an example of your entry logic?
Minimum bars to trade will only apply at the very beginning of your chart. This is in reference to how much data you need to have loaded for your strategy to refer to. This is not reset each new trading day on the chart.
Thanks in advance; I look forward to assisting further.Kate W.NinjaTrader Customer Service
-
I think I figured it out with another search of the forum. I'm going to use a time comparison to limit my trades to specific hours then let the chart run all the time. This should limit my crossover to just the average bars specified and they'll be the ones right up to my trading time as opposed to jumping from the day before. Thank you for the response and all the help I've gotten.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by judysamnt7, 03-13-2023, 09:11 AM
|
4 responses
59 views
0 likes
|
Last Post
by DynamicTest
Today, 08:25 PM
|
||
Started by ScottWalsh, Today, 06:52 PM
|
4 responses
36 views
0 likes
|
Last Post
by ScottWalsh
Today, 07:40 PM
|
||
Started by olisav57, Today, 07:39 PM
|
0 responses
7 views
0 likes
|
Last Post
by olisav57
Today, 07:39 PM
|
||
Started by trilliantrader, Today, 03:01 PM
|
2 responses
21 views
0 likes
|
Last Post
by helpwanted
Today, 07:25 PM
|
||
Started by cre8able, Today, 07:24 PM
|
0 responses
10 views
0 likes
|
Last Post
by cre8able
Today, 07:24 PM
|
Comment