NexusFi: Find Your Edge


Home Menu

 





Interactive Brokers Psar Vs. Ninjatrader 7 psar


Discussion in NinjaTrader

Updated
    1. trending_up 3,503 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 8 posts
    2. attach_file 0 attachments




 
Search this Thread

Interactive Brokers Psar Vs. Ninjatrader 7 psar

  #1 (permalink)
Kamalaya
Oklahoma , Usa
 
Posts: 5 since Oct 2015
Thanks Given: 0
Thanks Received: 0

Hello everyone, i need a little help with the following problem.I really want to make my NInjatrader7 Parabolic Sar Indicator, to look exactly like Interactive Brokers Psar Indicator. I don't have any ideea how to code,or make a custom psar indicator, or what i really need to do because i have no experience in programming at all.
But i have here the Interactive Brokers Sar Settings :
And Ninja Trader Sar settings or script :
Now , i have literally no ideea how to configure a new sar, but what i do know is i need somehow someway to configure that IB settings in Ninjascript.
I;m sorry if i don't put the question very clearly.
If someone in here know how to fix this it will be very very much appreciated
I also think that it need just to be taken the code from existing ninjascript psar indicator and just fixed it. I don't think it needs to be a complete rewrite.
PS: i can't post the links in here, if someone interested in helping me out , i will figure it out how to send the 2 links.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
What broker to use for trading palladium futures
Commodities
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #2 (permalink)
 choke35 
Germany
 
Experience: Intermediate
Platform: Other
Trading: ES, YM, 6E
Posts: 2,668 since Feb 2013
Thanks Given: 5,101
Thanks Received: 6,558


Kamalaya View Post
Hello everyone, i need a little help with the following problem.I really want to make my NInjatrader7 Parabolic Sar Indicator, to look exactly like Interactive Brokers Psar Indicator. I don't have any ideea how to code,or make a custom psar indicator, or what i really need to do because i have no experience in programming at all.
But i have here the Interactive Brokers Sar Settings :
And Ninja Trader Sar settings or script :
Now , i have literally no ideea how to configure a new sar, but what i do know is i need somehow someway to configure that IB settings in Ninjascript.
I;m sorry if i don't put the question very clearly.
If someone in here know how to fix this it will be very very much appreciated
I also think that it need just to be taken the code from existing ninjascript psar indicator and just fixed it. I don't think it needs to be a complete rewrite.
PS: i can't post the links in here, if someone interested in helping me out , i will figure it out how to send the 2 links.

No need to reinvent the wheel. ParabolicSAR is a genuine NT indicator and has exactly the same default settings
of 0.02, 0.2, 0.02 as TWS. So no need for changes there. Changing of colors etc. is via the Indicators Menu like
with any other NT Indicator.

If you want to use it for coding, see NinjaTrader Version 7 for the exact syntax.
You can also modify the code to your needs if needed on a copy of that indicator.

Reply With Quote
  #3 (permalink)
Kamalaya
Oklahoma , Usa
 
Posts: 5 since Oct 2015
Thanks Given: 0
Thanks Received: 0


No sir you get it wrong... Look carefully how Interactive Brokers sar is made, even though the custom settings are the same 0.2 00.2 bla bla bla, at IB you can see clearly the candle going through the DOTS OF THE SAR. which on NT IS impossible. So more clearly, when on 1 min TF, the sar is about to end on IB, when the candle goes to break the sar, the actually Last dot of the sar(sometimes more when is a false break) REMAIN THERE with the candle going through the DOT, it doesn't move down or dissapear, the dot remain there all the time.
This is the IB SAR script (coded in R probably or i dont know )
SARt+1 = SARt+ AF x (EPtradex SARt)

Where:

SARt+1 — next period's SAR

SARt - current SAR

AF - acceleration factor, begins at .02 and increases by .02 to a maximum of 0.20.

You can reset the initial, increments and maximum acceleration factor when you create the study.

EPtrade — the extreme price (HIGH for long positions and LOW for short positions).


SO i need someone who can understand what is there, and convert all of the above settings in NINjascript for SAR.

PS: i don't know how to CODE AT ALL, i don't know this language at all that's why i;m here for searching a programmer, a coder.

Reply With Quote
  #4 (permalink)
 choke35 
Germany
 
Experience: Intermediate
Platform: Other
Trading: ES, YM, 6E
Posts: 2,668 since Feb 2013
Thanks Given: 5,101
Thanks Received: 6,558


Kamalaya View Post
No sir you get it wrong... Look carefully how Interactive Brokers sar is made, even though the custom settings are the same 0.2 00.2 bla bla bla, at IB you can see clearly the candle going through the DOTS OF THE SAR. which on NT IS impossible. So more clearly, when on 1 min TF, the sar is about to end on IB, when the candle goes to break the sar, the actually Last dot of the sar(sometimes more when is a false break) REMAIN THERE with the candle going through the DOT, it doesn't move down or dissapear, the dot remain there all the time.
This is the IB SAR script (coded in R probably or i dont know )
SARt+1 = SARt+ AF x (EPtradex SARt)

Where:

SARt+1 — next period's SAR

SARt - current SAR

AF - acceleration factor, begins at .02 and increases by .02 to a maximum of 0.20.

You can reset the initial, increments and maximum acceleration factor when you create the study.

EPtrade — the extreme price (HIGH for long positions and LOW for short positions).


SO i need someone who can understand what is there, and convert all of the above settings in NINjascript for SAR.

PS: i don't know how to CODE AT ALL, i don't know this language at all that's why i;m here for searching a programmer, a coder.

Which realtime datafeed do you use for NT?

Reply With Quote
  #5 (permalink)
Kamalaya
Oklahoma , Usa
 
Posts: 5 since Oct 2015
Thanks Given: 0
Thanks Received: 0

I trade on demo on Ninjatrader Continuum(demo)

Reply With Quote
  #6 (permalink)
 choke35 
Germany
 
Experience: Intermediate
Platform: Other
Trading: ES, YM, 6E
Posts: 2,668 since Feb 2013
Thanks Given: 5,101
Thanks Received: 6,558

Data differences aside, I could reproduce the effects. It's a known issue.

Take a look at
@Fat Tails has coded a "strictly Wilder" version of the PSAR.

Reply With Quote
  #7 (permalink)
Kamalaya
Oklahoma , Usa
 
Posts: 5 since Oct 2015
Thanks Given: 0
Thanks Received: 0

OK how can i download it?

Reply With Quote
  #8 (permalink)
 
shodson's Avatar
 shodson 
OC, California, USA
Quantoholic
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Broker: IB, ToS, Kinetick
Trading: stocks, options, futures, VIX
Posts: 1,976 since Jun 2009
Thanks Given: 533
Thanks Received: 3,709

I actually worked on this problem for a while. To complicate matters, different versions of IB have different PSAR calculations. The newer IB versions are more in-line with the built-in NT version, but an older version is quite different. I had a customer that wanted to auto-trade in NT but using the PSAR in the older IB but I couldn't accurately mimic the old IB version. We even tried to contact developers at IB to get the formula of the older version but the project was eventually scrapped.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #9 (permalink)
Kamalaya
Oklahoma , Usa
 
Posts: 5 since Oct 2015
Thanks Given: 0
Thanks Received: 0

I understand, thank you for your response, i actually don't know how the IB verssions psar are, or i don't know which one is better in terms of sar, but this is the formula of their Psar that i want to convert into NT script:
For use in trending markets, parabolic SAR uses a trailing stop and reverse method to help determine good exit and entry points. The Parabolic SAR calculation is:

SARt+1 = SARt+ AF x (EPtradex SARt)

Where:

SARt+1 — next period's SAR

SARt - current SAR

AF - acceleration factor, begins at .02 and increases by .02 to a maximum of 0.20.

You can reset the initial, increments and maximum acceleration factor when you create the study.

EPtrade — the extreme price (HIGH for long positions and LOW for short positions).

Now, this sshould be somehow someway the pointo from a programmer can turn it into a ninjatrader sar as weel, i tried last days to talk with mre ppl, even e-mailing the NT support team but nothing seems to work...

Reply With Quote




Last Updated on October 24, 2015


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts