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 NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
86 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
151 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
79 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
52 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
59 views
0 likes
|
Last Post
|

Comment