Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Builder - configure a profit target condition?
Collapse
X
-
Strategy Builder - configure a profit target condition?
Does anyone know how I could run an automated strategy until profit hits $50.00 (total PnL?)? But stop running if we go negative $50.00?Last edited by MatthewLesko; 03-09-2021, 12:52 AM.Tags: None
-
Hello MatthewLesko,
Thank you for your post.
Yes, in the Strategy Builder you could create a set of conditions to check whether your realized PnL is greater or less than your values, and set a bool to control whether the strategy can enter again. I've created a simple strategy builder strategy that runs in real time only (please test with the Sim101 account on a live chart) and submits a long order with a stop and target if the current position is flat and a bool called OKtoTrade is true. When the strategy sees that the realized PnL is greater or less than the ProfitPnL or LossPnL, the bool is changed to false and the strategy will not enter further trades.
Please let us know if we may be of further assistance to you.Attached Files
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
65 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
41 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
23 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
26 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
52 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment