Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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 FilesKate W.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Jon17, Today, 04:33 PM
|
0 responses
1 view
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
4 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
||
Started by timmbbo, Today, 08:59 AM
|
2 responses
10 views
0 likes
|
Last Post
by bltdavid
Today, 04:10 PM
|
||
Started by alifarahani, Today, 09:40 AM
|
6 responses
41 views
0 likes
|
Last Post
by alifarahani
Today, 03:18 PM
|
||
Started by Waxavi, Today, 02:10 AM
|
1 response
19 views
0 likes
|
Last Post Today, 03:03 PM |
Comment