NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 03-21-2009, 01:31 AM   #1
keepdchange
Junior Member
 
Join Date: Mar 2009
Posts: 17
Thanks: 0
Thanked 0 times in 0 posts
Default Parabolic SAR Indicator

Hello...

I am trying to write a strategy using the PSAR indicator. Previously, I had this strategy on my TD Ameritrade Strategy Desk. I noticed a difference between the functionality of the PSAR on both platforms. On TD Ameritrade, once the bar penetrates the dot, it pushes it until the previous PSAR dot and once it passes the previous dot, it changes direction. However, in NinjaTrader chart, when I use the PSAR with the same parameters, once the bar reaches the dot, it pushes it further, then it starts flipping back & forth between the two directions or the bar keeps pushing the dot further passes the previous bar's dot and leaves it there. Another words, it does not function correctly....Am I missing something...I hope I was clear in explaining.

Appreciate a response...
keepdchange is offline  
Reply With Quote
Old 03-21-2009, 07:19 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

keepdchange,

Please try with CalculateOnBarClose = true. The implementation we use is the generally accepted one outlined here: http://www.fmlabs.com/reference/default.htm?url=SAR.htm

Please also ensure you are on at least NT6.5.1000.8.
NinjaTrader_Josh is offline  
Reply With Quote
Old 03-24-2009, 09:43 AM   #3
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

keepdchange,

Please try this version of ParabolicSAR and see if it addresses your issues. Let me know if you run into any additional issues. Thank you.

Edit: A more up-to-date version has been uploaded. Please redownload.
Attached Files
File Type: zip ParabolicSARFix.zip (6.0 KB, 42 views)
NinjaTrader_Josh is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parabolic SAR indicator is not correct calin Charting 9 12-19-2008 06:26 AM
Modify Parabolic SAR Colors arb56 Indicator Development 1 10-17-2008 03:40 PM
parabolic sar stop TomTheTrader Automated Trading 10 08-15-2008 01:42 PM
Parabolic SAR sync latkinso Charting 1 07-08-2008 04:29 PM
Parabolic SAR indicator (Download) Version 5 Only NinjaTrader_Ray Indicator Development 4 08-04-2006 11:36 AM


All times are GMT -6. The time now is 10:22 PM.