Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to set profit target bollinger Bands
Collapse
X
-
How to set profit target bollinger Bands
Hi,I can't find a solution how to set the profit target at the middle band of the bollinger indicator in the strategy builder.Is there somebody that can help me?
ThanksLast edited by Italianforex; 04-10-2019, 07:22 PM.Tags: None
-
-
Hello Italianforex,
Thanks for your reply.
The strategy builder provides a SetProfitTarget() however this cannot be used for a dynamically changing value such as the Bollinger as the profit target is set when the strategy is loaded.
To accomplish your goal you would need to create a set that:
1) Checks to see that you are in a long position (Using Strategy>Current MarketPosition == Strategy>MarketPosition>Long
2) add a check to see if the price is at or greater than the Bolllinger middle band (using Price>High[0] >= Indicator>Bollinger>value plot middle)
3) as an action, calls ExitLong()
You would then need to create another set to cover the short exit.
Comment
-
Hello, I'm facing a similar problem (I want to exit at the upper bollinger band). I tried to create a dynamic profit target on the upper band using the strategy builder but it didn't work. Could you please provide a sample code for this solution? The 3 steps above weren't enough for me (sorry, I can't code). Thank you.
Comment
-
Hello DudaoRJ,
Thanks for your post.
Please see the help guide for the conditions builder which shows examples, here is a link to the page for your convenience: https://ninjatrader.com/support/help...on_builder.htm
Also, here is a link to a recorded webinar on the Strategy Builder: https://www.youtube.com/watch?v=HCyt...We0Nf&index=11
I've attached a screenshot of what the strategy builder conditions window would look like when checking to see if you are in a long position and if the close of the bar closes above the upper band of the bollinger indicator, the action to then exit long.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
88 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
134 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
119 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment