Sorry I do not follow. Are you referring to something on ParabolicSAR? Any strategy you use will follow what the code tells it to do. If the code has an exit order immediately as you have an enter order for sure it will close you immediately.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Parabolic SAR Automated Strategy doesn't work.
Collapse
X
-
Re
I am using the scripts that i found on forums, as well as the stock sample provided in the software. Can you load a zip file with the correct settings in which the automated system doesnt automaticly take you out of a position. If this something very simple, I cant figure it out. I am trying to change the settings without any luck.
Comment
-
Bertrand, it is the same code that I posted at the end of post #11. I made no modifications to the code after I updated the platform version. All entry position orders are indeed stop orders as was intended.
Originally posted by NinjaTrader_Bertrand View PostHi, thanks for the update - can you please post the code you used to arrive at this? Just because you use the Parabolic indicator for generating your signals, it does not mean you use place the orders as a certain type, limit / stop...so if you place a market order after the condition occured this may explain the difference you witness. Thanks!Attached FilesLast edited by kocmodpom; 03-21-2009, 01:42 AM.
Comment
-
kocmodpom,
With stop orders you are not guaranteed a specific price. If you want guarantees you will need to use limit orders. Stop orders become market orders which ultimately can get filled anywhere once the stop price is penetrated. Limit orders on the other hand will fill you at the limit price or better.Josh P.NinjaTrader Customer Service
Comment
-
You can use a Buy Stop Limit or a Sell Stop Limit order to trigger a limit order once a certain threshold is met, however in a quick moving market you will miss some entries on occasion. Need to decide which is better: giving up a tick on most entries, vs. missing a few entries all together (market vs limit).
NT Josh, Ben, Bertrand --- I would like this updated indicator as mentioned in post #12. You have my email address.
Thanks,
Mike
Comment
-
I am not buying that because of post #11. (reread post #11)Originally posted by NinjaTrader_Josh View Postkocmodpom,
With stop orders you are not guaranteed a specific price. If you want guarantees you will need to use limit orders. Stop orders become market orders which ultimately can get filled anywhere once the stop price is penetrated. Limit orders on the other hand will fill you at the limit price or better.
Note initially the first and second order was correct. When I added the DefaultInput[1] < Parabolic[1] line to correct for the missed 3rd order, the 2nd order is now incorrect. It seems the only reason the 1st order is still correct is because the next bar crossed only the Parabolic[0] order and not the Parabolic[1] order. Since this was a backtest, that shouldn't have happened.
That effectively eliminates the market order theory.
How can you explain that other than a potential ninjascript problem? I can repost it again if you like. There seems to be some amibguity in NT for stop order treatment.Last edited by kocmodpom; 03-24-2009, 10:33 AM.
Comment
-
kocmodpom,
Not sure I follow. This is not a theory. Stop orders always become market orders when their stop prices are hit. It is the definition of what a stop order is.
If you wish to isolate out what is happening with your orders you need to turn on TraceOrders and debug it. This would require you to unlock your code, but at this point in time it is the only way to proceed. Please see this tip: http://www.ninjatrader-support2.com/...ead.php?t=3627Josh P.NinjaTrader Customer Service
Comment
-
Let me try to be more clear. Yes I am fully aware that stops become market orders when activated. I was referring to the "market theory" as your explanation as to what was happening. So what you are contending happened is not the correct rationale.Originally posted by NinjaTrader_Josh View Postkocmodpom,
Not sure I follow. This is not a theory. Stop orders always become market orders when their stop prices are hit. It is the definition of what a stop order is.
If you wish to isolate out what is happening with your orders you need to turn on TraceOrders and debug it. This would require you to unlock your code, but at this point in time it is the only way to proceed. Please see this tip: http://www.ninjatrader-support2.com/...ead.php?t=3627
It is my hypothesis that NT has an unknown system for determining which order should be executed when the price action shoots past both stops orders in a single bar. Let's call that my "NT indiscriminate Theory" or "Ntits" for short.
I can add further evidence to the Ntits theory if I add a third stop order tied to Parabolic[2] and then show that it executes before Parabolic[0] and Parabolic[1] when a single bar rises past all three stop orders.
If I can show that happen, then it would seem the problem is likely not in the strategy but elsewehere within the ninjascript process.
This has developed into a much more interesting problem than I first thought. I will try that, and then the tracelog. I do appreciate the assistance.
Comment
-
kocmodpom,
Unfortunately I do not follow what you are saying. NinjaTrader executes trades when the code tells it to. If the code tells it to trade it will trade. If the code does not tell it to trade it will not trade. There is no mystery as to when orders are placed or why orders are either accepted or ignored.Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
88 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
48 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
31 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
34 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
68 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment