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 bmartz, 03-12-2024, 06:12 AM
|
4 responses
32 views
0 likes
|
Last Post
by bmartz
Today, 08:02 AM
|
||
Started by Aviram Y, Today, 05:29 AM
|
4 responses
12 views
0 likes
|
Last Post
by Aviram Y
Today, 07:57 AM
|
||
Started by algospoke, 04-17-2024, 06:40 PM
|
3 responses
28 views
0 likes
|
Last Post Today, 07:41 AM | ||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
1 response
8 views
0 likes
|
Last Post Today, 07:30 AM | ||
Started by cls71, Today, 04:45 AM
|
1 response
7 views
0 likes
|
Last Post Today, 07:25 AM |
Comment