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
How does the parabolic stop work in NT8?
Collapse
X
-
How does the parabolic stop work in NT8?
Can someone do better than the help file (Although logic wise very similiar, this technique works different from theParablicSARindicator) in explaining how does it actually work and how to make it less twitchy? When I activate in my strategy, in trends it stops the position on nearly every candleTags: None
-
Hello itrader46,
Thanks for your post, and welcome to the forums!
SetParabolicStop() uses the same parabolic trailing as the ParabolicSAR indicator, but the indicator will be relative to bar data when the SetParabolicStop() method will be relative to price acceleration and the entry price. With each update to the parabolic stop, the stop will move closer and closer to the current market price until it is filled.
I may suggest testing a simple strategy like the following in the Simulated Data Feed to observe the stop getting updated and moving closer to the current market price.
Code:protected override void OnStateChange() { if (State == State.SetDefaults) { Description = @"Enter the description for your new custom Strategy here."; Name = "ParabolicTest"; } else if (State == State.Configure) { SetParabolicStop(CalculationMode.Ticks, 12); } } protected override void OnBarUpdate() { if (State == State.Historical) return; if (Position.MarketPosition == MarketPosition.Flat) EnterLong(); }
JimNinjaTrader Customer Service
-
Originally posted by NinjaTrader_Jim View PostHello itrader46,
Thanks for your post, and welcome to the forums!
SetParabolicStop() uses the same parabolic trailing as the ParabolicSAR indicator, but the indicator will be relative to bar data when the SetParabolicStop() method will be relative to price acceleration and the entry price. With each update to the parabolic stop, the stop will move closer and closer to the current market price until it is filled.
I may suggest testing a simple strategy like the following in the Simulated Data Feed to observe the stop getting updated and moving closer to the current market price.
Comment
-
Welcome to the forums LuciusForum!
Reimplementing the ParabolicStop logic using Exit methods may be more effortful than taking the approaches below. I would suggest considering these instead:- Trap the execution of the Parabolic Stop in OnExecutionUpdate and to call an Enter method to re-enter in the opposite direction
- Use BarsSinceExitExecution to check if the Parabolic Stop has executed in OnBarUpdate to re-enter when the next bar has processed in OnBarUpdate
Number two may be easier to implement if you are not as familiar with NinjaScript and can be built using the Strategy Builder. You would need to use variables to track what the strategy's last position was so you can determine which direction you need to re-enter when the BarsSinceExitExecution for "Parabolic Stop" is 0,
Parabolic Stops have an Execution name of "Parabolic Stop" so this string can be used in BarsSinceExitExecution and will also be the Execution.Name when the Parabolic Stop execution is seen in OnExecutionUpdate.
BarsSinceExitExecution - https://ninjatrader.com/support/help...texecution.htm
OnExecutionUpdate - https://ninjatrader.com/support/help...tionupdate.htm
SetParabolicStop - https://ninjatrader.com/support/help...abolicstop.htm
Please let me know if I can be of further assistance.JimNinjaTrader Customer Service
- Likes 1
Comment
-
Hello Conceptzx,
Attached is a test script you can use to test the parabolic stop.
SetParabolicStopTest_NT8.zip
Note, an issue has been identified where in some instances the stop price is moved to an improper price. This is being tracked with ID # NT-6575 and is scheduled to be corrected in the upcoming release of NinjaTrader 8.
https://ninjatrader.com/support/help...ease_notes.htmChelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bmartz, Today, 09:30 AM
|
2 responses
11 views
0 likes
|
Last Post
by bltdavid
Today, 11:24 AM
|
||
Started by f.saeidi, Today, 11:02 AM
|
1 response
3 views
0 likes
|
Last Post Today, 11:08 AM | ||
Started by geotrades1, Today, 10:02 AM
|
4 responses
12 views
0 likes
|
Last Post
by geotrades1
Today, 11:08 AM
|
||
Started by rajendrasubedi2023, Today, 09:50 AM
|
3 responses
16 views
0 likes
|
Last Post Today, 10:57 AM | ||
Started by lorem, Today, 09:18 AM
|
2 responses
11 views
0 likes
|
Last Post Today, 10:55 AM |
Comment