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
please create a breakeven for Strategy builder
Collapse
X
-
Hello JTizz,
The strategy uses a variable called StopLossMode to track when the stop loss should be moved to another level.
When the entry order is submitted, this is set to 0 and the initial stop level will be used.
When the price goes up 10 ticks from the average entry price, StopLossMode to 1. (Set 5)
Set 3 then checks if StopLossMode is 1 and the stop is moved to the breakeven point.
You can do something similar in Set 5 to check if the the current market price traveled the same distance as your profit target, or you can check Misc > Bars Since Exit equals Misc > Numeric Value > 0 which would mean an Exit order has executed.
If you use Misc > Bars Since Exit, I may suggest using Exit methods for your profit target, similar to how the example here uses Exit methods for the stop loss. This way you can specify your own Signal name for the Profit Target and use that unique Signal name with Misc > Bars Since Exit.
Exiting a market position - https://ninjatrader.com/support/help...MarketPosition
We look forward to assisting.JimNinjaTrader Customer Service
Comment
-
HI
I have built a strategy with the Strategy Builder. It replicates how i would trade so Im happy with entries.
I need a strategy to move to break even and I have downloaded the one you posted.
My question is. Should I incorporate that builder into my strategy or can I just let my strategy enter and exit and attach your strategy to look after the B/E element.
Forgive my lack of knowledge but Im just getting into this side of things
Comment
-
Hello PPDOC, thanks for your post.
If you need the same functionality in your strategy we would recommend first to fully understand what is happening in the original example so the same idea can be applied to your strategy. Once you know exactly how it works the same logic can be incorporated into your strategy. There is no automatic way of unifying two strategies, nor can a strategy see the logic/positions/actions of another strategy made in the builder.
Please let me know if I can assist any further.
Chris L.NinjaTrader Customer Service
Comment
-
Hi NinjaTrader Team,
While this Break Even template does work; for some reason it only works when I turn the built in stop loss off. To make matters worse, when I built a stop loss system manually (using the same logic as the break even; except allowing the stop loss stop value to preside when "MoveToBreakEven" is set at False), the stop losses only work sometimes. Can you help me understand why the built in stop won't work with this system, and a way to accomplish a reliable alternative?
(PS: I tried it on the sample provided and the BE stop ceased working there too).
Thanks,
MBLast edited by cmbynes; 06-10-2021, 06:45 PM.
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Kaledus, Today, 01:29 PM
|
1 response
7 views
0 likes
|
Last Post Today, 01:53 PM | ||
Started by frankthearm, Yesterday, 09:08 AM
|
13 responses
45 views
0 likes
|
Last Post
by frankthearm
Today, 01:52 PM
|
||
Started by PaulMohn, Today, 12:36 PM
|
2 responses
16 views
0 likes
|
Last Post
by PaulMohn
Today, 01:48 PM
|
||
Started by Conceptzx, 10-11-2022, 06:38 AM
|
2 responses
55 views
0 likes
|
Last Post
by PhillT
Today, 01:47 PM
|
||
Started by yertle, Yesterday, 08:38 AM
|
8 responses
37 views
0 likes
|
Last Post
by ryjoga
Today, 01:22 PM
|
Comment