Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Builder Setup Issue.
Collapse
X
-
Strategy Builder Setup Issue.
Hey, I have a condition in place that works okay, i.e. placing an order for 2 contracts given the required bar setup are in place. What I would like to do is reducing the numbers of contract for 1 given the setup is happening below my current/first average entry. So I have duplicated the condition, reduced the # of contract for 1 and placed an additional condition stating that order for single contract will be place if the close of bar 0 is below my current average position. In the reality, the moment bars setup is in place, the strategy is placing an order for 3 contracts instead of 2 as long as current price is above average price position and only 1 if current price is below current average price position. Thoughts?Tags: None
-
Hello elic1968,
Thank you for your post.
It sounds like the conditions for each entry, the one for 2 contracts as well as the one for 1 contract, are being met. Depending on what your entry conditions are, you will need to consider if there is a scenario where both sets of conditions can be true. If that is the case, you could consider adding a bool variable and check its value in your strategy conditions so that only one condition or the other results in an order being submitted.
Another helpful tool is adding print statements into your actions in the Strategy Builder that show the values used in the condition. For more information on using prints to debug your script, including a video about adding prints to the Strategy Builder, please see the links below:Please let us know if we may be of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
20 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
119 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
63 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
41 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
45 views
0 likes
|
Last Post
|

Comment