Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
price greater than 5 below keltner and price less than 5 above keltner
Collapse
X
-
price greater than 5 below keltner and price less than 5 above keltner
i'm trying to have an entry when price is between 5 below keltner and 5 above keltner one bar ago. i attached a screen shot of my strategy. is that correct?Tags: None
-
Hello SteveReiza,
Thank you for your post.
Rather than asking "is that correct?" please test your strategy and see if the entry is being submitted as expected. If you are getting a different behavior than expected, please report back with what you expected to happen vs. how your strategy behaved when tested.
What I see based on your screenshot is that the condition is checking the following:
if the KeltnerChannel midline from 1 bar ago is greater than the Bollinger upper from 1 bar ago
AND
if the current bar's time of day is greater than or equal to 12:30 AM
AND
if the current bar's time of day is less than 12:58 PM
AND
if the price from 1 bar ago is less than or equal to the KelnterChannel midline from 1 bar ago + 5 ticks
AND
if the price from 1 bar ago is greater than or equal to the KeltnerChannel midline from 1 bar ago - 5 ticks
If all of those conditions are met, then the action is to submit a buy market entry order, however, you seem to have the quantity set to 0. This will likely need to be modified to test your strategy accurately.
Please let us know if we may be of further assistance.
-
thanks for the reply. i tested the strategy. i got results on the less than 5 keltner and greater than -5 keltner line. but when i put the price to equal individually 5, 4, 3 and so on keltner line i didn't get any trades. any suggestions or advice? i should have received trades because there were some in that range.
Comment
-
To better understand why you did not see trades when you were expecting them, please add prints and enable TraceOrders in your strategy:Originally posted by SteveReiza View Postthanks for the reply. i tested the strategy. i got results on the less than 5 keltner and greater than -5 keltner line. but when i put the price to equal individually 5, 4, 3 and so on keltner line i didn't get any trades. any suggestions or adivice? i should have received trades because there were some in that range.- https://support.ninjatrader.com/s/ar...language=en_US
- Video about debugging in the Strategy Builder - https://www.youtube.com/watch?v=uhJWQvpw2LM
Once you have added prints and/or enabled Trace Orders, please open a Control Center > New > NinjaScript Output window and leave that window open while running your strategy. The output that appears there offers additional insight regarding your strategy's behavior and can help to understand when orders are triggered or not as well as why orders might be ignored or rejected. If you are unsure as to the meaning of the output, you may right-click the NinjaScript Output window and Save As to create a text file that may be attached to your response here.
Thank you for your time and patience.
Comment
- https://support.ninjatrader.com/s/ar...language=en_US
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
559 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
546 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment