Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Request Breakeven Functions in Strategy Builder
Collapse
X
-
Hello guidoisot,
No, I did not experience these errors.
I enabled the script for about a minute and this disabled this and began working with a new client. In the minute the strategy was enabled no orders were placed and no errors were experienced.
The error is letting you know that a sell stop order was placed above the market. This is an invalid placement for a stop market order. Stop market orders must be placed below the bid.
Which example are you referring to?
Are you referring to the BreakEvenBuilderExample and the TrailBuilderExample strategies that are being discussed in this forum thread?
These do work historically and do not have any code in the conditions to only place entries in real-time.Last edited by NinjaTrader_ChelseaB; 09-15-2021, 01:20 PM.
-
Hello
in the meantime, a few minutes after applying the strategy, the two error messages attached showed up.
Did you get the same error msg?
No need to run the script.
Maybe you could modify the script of the sample you published some time ago so that it can place orders also historically, on minute timeframe chart.
Thanks.Attached Files
Leave a comment:
-
Hello guidoisot,
You will need to debug the script to find out why no orders are being placed.
In my previous email I have provided a link to a forum post that demonstrates how to use prints to understand behavior.
I have tested the script as you have requested. I am not finding orders are being placed historically, however, this is how the conditions are written in the script.
Are you wanting me to run the script for a specific amount of time to see if orders are placed in real-time?
You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our business development follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request.
How long would you like me to run the script.
Leave a comment:
-
Hello Chelsea,
the script does not trigger any trade, no entry orders, both real-time and historically.
I am using only minute bars.
Please see screenshot video to better describe what is happening.
Unfortunately I do not know how to use print for this script.
As it is now, with the changes I have done on loss target and trailing calculation methods, does it trigger trades on your platform?
Thanks.
Leave a comment:
-
Hello guidoisot,
Is the script not working real-time or is the script not working historically?
What is the bar type and interval the strategy is being applied to?
Historical Tick Data is not supported with Interactive Brokers connections in NinjaTrader. It would be expected this would not load historically on a tick based chart using this connection type but would run in real-time.
What is not working?
Is the entry not being placed?
Are the exit orders not being placed?
Are these being placed but are not filling?
Have you used prints to debug the script and understand the behavior?
- Likes 1
Leave a comment:
-
Hello I have modified the NT8 sample inserting a different entry long condition (last bar close higher than previous bar close).Originally posted by NinjaTrader_ChelseaB View PostHello 123r34,
Attached are two examples of a breakeven movement and a trailing action created with the Strategy Builder.
It was working when I was using Continuum data feed. Now I am using IB data feed and the sample strategy does not trigger any trade.
Is this due to the type of data feed provided by IB (no tick historical) ?
In order to avoid tick references in the script I have been using only minute timeframes and I changed loss target and trailing calculation methods, (from nr of ticks to percentage changes; I hope I was able to do this correctly with the Strategy Builder), but it appears that this is not enough to get the sample strategy working.
Can you please explain why this is happening? is it because the scripts requests "Real Time"?
I attach the sample modified.
Thanks.Attached Files
Leave a comment:
-
please add my vote for this feature request ID#SFT-2212
Thank you.
- Likes 1
Leave a comment:
-
I have forwarded your vote request to our development team.
Leave a comment:
-
Hello 123r34,
I have received a tracking ID for your request.
Your request for the Strategy Builder to have breakeven settings is being tracked with ID #SFT-2212.
Please note it is up to the NinjaTrader Development to decide if and when a request will be implemented.
We appreciate your feedback. Please let us know of any other suggestions you have for the NinjaTrader Platform.
- Likes 1
Leave a comment:
-
Yes, please submit my request for a Breakeven function in the Strategy Builder. It would be extremely useful to the non programmers which are probably the vast majority of your users.
Thank you
- Likes 5
Leave a comment:
-
Hello 123r34,
I am happy to submit a feature request on your behalf for the NinjaTrader Development to consider this for a future version of NinjaTrader. Please let me know if you would like to do this.
NinjaScript Strategies are meant to have the behavior customized by the logic of the programmer including any custom trailing or breakeven movements.
Attached are three examples of a breakeven movement and a trailing action created with the Strategy Builder.
(Update August 5th, 2020 - changed the CurrentTriggerPrice and CurrentStopPrice variables to doubles)
(Update August 8th, 2023 - Added TrailLongShortBuilderExample_NT8, started tracking with a progressState variable)
BreakEvenBuilderExample_NT8.zip
TrailBuilderExample_NT8.zip
TrailLongShortBuilderExample_NT8.zipLast edited by NinjaTrader_ChelseaB; 08-05-2020, 02:23 PM.
- Likes 10
Leave a comment:
-
Request Breakeven Functions in Strategy Builder
I use the Strategy Builder as I am not a programmer. It would be very helpful if a Breakeven function was available in the Strategy Builder. When I test a trading idea manually the ATM Strategy easily allows a Breakeven setting. When I want to fine tune that idea in Strategy Builder Breakeven isn't available.. The Breakeven feature can really make a difference in the profitability of a strategy.
Let me know if NinjaTrader has any interest in adding this feature.
Thank you,Tags: None
- Likes 3
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
636 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
366 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
107 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
569 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
571 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Leave a comment: