NexusFi: Find Your Edge


Home Menu

 





Custom symbol


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Alex91320 with 10 posts (1 thanks)
    2. looks_two Fat Tails with 9 posts (5 thanks)
    3. looks_3 Nimble with 1 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 8,832 views
    2. thumb_up 6 thanks given
    3. group 4 followers
    1. forum 20 posts
    2. attach_file 3 attachments




 
Search this Thread

Custom symbol

  #1 (permalink)
 Nimble 
CA
 
Experience: Intermediate
Platform: NinjaTrader,JTrader,ThinkOrSwim
Broker: IQFeed
Trading: ES, ETF
Posts: 14 since Aug 2009
Thanks Given: 5
Thanks Received: 20

Hi,

I would like to chart a custom symbol in Ninja 6.5. What I am interested in is very simple for now. Stock price A - Stock price B.

In TOS, I can just do A-B to see the difference. Or -A to invert the Chart for Stock A.

Is there a way to do this in Ninja? I can program indicators a bit so if it needs simple coding, works for me as well.

Thanks!

Nimble

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Quant vue
Trading Reviews and Vendors
How to apply profiles
Traders Hideout
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
What is Markets Chat (markets.chat) real-time trading ro …
76 thanks
Spoo-nalysis ES e-mini futures S&P 500
55 thanks
Just another trading journal: PA, Wyckoff & Trends
37 thanks
Bigger Wins or Fewer Losses?
24 thanks
The Program
17 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


I think there is no easy way to do this in NinjaTrader. One option would be

- create a chart with 2 data series for stock A and stock B
- then apply a spread indicator to the chart

You would then have a chart with three sections, stock A, stock B and the spread. Spread indicators can be found in the download section of this forum or the NinjaTrader forum.

By the way, the simple difference of two stocks, such as A-B, does not make any sense. You would want to balance the stocks in line with their Beta, if you take any difference. It would be much easier to work with a simple ratio spread, as this already compares the logarithm of price.

Ratio spread indicator can also be found in the download sections.

Reply With Quote
Thanked by:
  #4 (permalink)
 Alex91320 
Los Angeles, CA
 
Experience: Advanced
Platform: TOS, NT
Broker: AMp Futures/CQG
Trading: Options, Futures
Posts: 16 since Sep 2010
Thanks Given: 15
Thanks Received: 10

I got the "spread" indicator to plot the diff, but I'd like to apply haiki ashi to it.
Sadly, "spread" being an indicator itself, I cant apply another indicator to it...
can anyone offer a suggestion on how to get it done?

I was told it IS possible to apply an oscillator to "spread".. sounds like that's applying an indicator to indicator..

Thanx

Reply With Quote
  #5 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


Alex91320 View Post
I got the "spread" indicator to plot the diff, but I'd like to apply haiki ashi to it.
Sadly, "spread" being an indicator itself, I cant apply another indicator to it...
can anyone offer a suggestion on how to get it done?

I was told it IS possible to apply an oscillator to "spread".. sounds like that's applying an indicator to indicator..

Thanx

The spread indicator uses a particular synchronisation method, which makes it vulnerable of being called by other indicators, so do not expect the usual behaviour. You cannot apply the default Heikin Ashi indicator.

However, there is modified HeikinAshi indicator here



which can be applied to the spread indicator. Select spread with appropriate settings as input series, select a separate panel and set "UseOnMainPanel" to false. You will get a result as shown on the chart below (spread of WTI over Brent).

Do not touch the chart anymore, if you change any settings, it might quickly dissipate.


Reply With Quote
Thanked by:
  #6 (permalink)
 Alex91320 
Los Angeles, CA
 
Experience: Advanced
Platform: TOS, NT
Broker: AMp Futures/CQG
Trading: Options, Futures
Posts: 16 since Sep 2010
Thanks Given: 15
Thanks Received: 10

@ Fat tails... You just put up a pic of something a number of NT coders I've contacted were troubled by!
Sending PM..

Thanx

Reply With Quote
  #7 (permalink)
 Alex91320 
Los Angeles, CA
 
Experience: Advanced
Platform: TOS, NT
Broker: AMp Futures/CQG
Trading: Options, Futures
Posts: 16 since Sep 2010
Thanks Given: 15
Thanks Received: 10

Mike, please forgive me...
I tried to PM Fat Tails, and was denied, as I only had 4 posts

Reply With Quote
  #8 (permalink)
 Alex91320 
Los Angeles, CA
 
Experience: Advanced
Platform: TOS, NT
Broker: AMp Futures/CQG
Trading: Options, Futures
Posts: 16 since Sep 2010
Thanks Given: 15
Thanks Received: 10

@Fattails



Here is a link to Ninjatrader support forums where they are discussing ability to have excel exchange data with NT, so excel will take the two live quotes, perform the calculation and send it back to NT in a form of a symbol.

And here they are using "BigMike Excel" plug in to get this done

Then we can add the custom symbol to NT and BAM! we have the spread calculation thats a symbol and can accept indicators, etc...

Just a thought.....

Reply With Quote
  #9 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


Alex91320 View Post
@Fattails



Here is a link to Ninjatrader support forums where they are discussing ability to have excel exchange data with NT, so excel will take the two live quotes, perform the calculation and send it back to NT in a form of a symbol.

And here they are using "BigMike Excel" plug in to get this done

Then we can add the custom symbol to NT and BAM! we have the spread calculation thats a symbol and can accept indicators, etc...

Just a thought.....

@ Alex91320: I think that this approach is too complex and will not solve the synchronisation issue.

There is a Pairs Suite on the NinjaTrader forum, which has a few bugs (throws exceptions), but it can be used for your purpose with minor modifications.

Let me come back with a solution.

Reply With Quote
Thanked by:
  #10 (permalink)
 Alex91320 
Los Angeles, CA
 
Experience: Advanced
Platform: TOS, NT
Broker: AMp Futures/CQG
Trading: Options, Futures
Posts: 16 since Sep 2010
Thanks Given: 15
Thanks Received: 10


Fattails,

I tried the pairs indicator, had same issue.
however, If you can make it work, I'll be forever grateful!

Reply With Quote




Last Updated on February 27, 2012


© 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