NexusFi: Find Your Edge


Home Menu

 





NinjaTrader 7 and spreads


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one SodyTexas with 12 posts (5 thanks)
    2. looks_two pipsalottle with 8 posts (2 thanks)
    3. looks_3 boze man with 6 posts (3 thanks)
    4. looks_4 Big Mike with 5 posts (5 thanks)
      Best Posters
    1. looks_one sam028 with 2 thanks per post
    2. looks_two dmh24 with 1.6 thanks per post
    3. looks_3 Big Mike with 1 thanks per post
    4. looks_4 SodyTexas with 0.4 thanks per post
    1. trending_up 28,414 views
    2. thumb_up 27 thanks given
    3. group 18 followers
    1. forum 52 posts
    2. attach_file 7 attachments




 
Search this Thread

NinjaTrader 7 and spreads

  #31 (permalink)
 pipsalottle 
Australia
 
Experience: Intermediate
Platform: Python, R
Broker: IB
Trading: forex
Posts: 26 since Sep 2014
Thanks Given: 0
Thanks Received: 2

ok the symbol maping is CLES12 then choose 12-15, this will give you a calendar spread for DEC15-DEC16, i can confirm that it is correct with viewing my CQG platform. (looking at L2 and T&S)

after waiting a while i am getting something data on the chart too.

a note to anyone else setting this up. Disable historical data in your connection settings (as mentioned earlier in the post)

thanks to all who contributed!!

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
Exit Strategy
NinjaTrader
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
15 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
13 thanks
My NQ Trading Journal
11 thanks
  #32 (permalink)
 xandman 
Chicago IL
 
Experience: Intermediate
Platform: NT CQG TWS
Trading: Futures and FOPs
Posts: 59 since Mar 2014
Thanks Given: 7
Thanks Received: 15

I am almost convinced that this will never happen in NT. Nt8 resuses the same NT7 code base, only with an upgraded UI.

Reply With Quote
  #33 (permalink)
 
SodyTexas's Avatar
 SodyTexas 
Austin TX
 
Experience: Advanced
Platform: Ninjatrader, Python, & R
Broker: RJO
Trading: Futures, Spreads
Posts: 421 since Sep 2013
Thanks Given: 117
Thanks Received: 1,085



xandman View Post
I am almost convinced that this will never happen in NT. Nt8 resuses the same NT7 code base, only with an upgraded UI.

Agreed, I been playing around with the code base to find a way to build a custom spread bar type. But I am afraid I am over my head.

"The great Traders have always been humbled by the market early on in their careers creating a deep respect for the market. Until one has this respect indelibly engraved in their makeup, the concept of money management and discipline will never be treated seriously."
Visit my NexusFi Trade Journal Reply With Quote
  #34 (permalink)
 calhawk01 
baltimore marylnd
 
Experience: Beginner
Platform: ninja
Trading: es
Posts: 91 since May 2013
Thanks Given: 5
Thanks Received: 11

hi

thanks for this discussion. till today i have been executing each leg manually. exchange traded spreads are def the way to go; less commission too!

ok so all my spreads are fine; in terms of when i compare them to my manual spread indicator, except RBOB crack spread;

The formula I have for calc RBOB spread is:

 
Code
if (CurrentBarArray[0] > 0 && CurrentBarArray[1] > 0 && CurrentBarArray[2] > 0)
			{
				if (BarsInProgress > 0) 
					
					a = Closes[1][0]; // CL close
					b = Closes[2][0]*42; // RBOB close * 42; so the compare apples to apples
					
				{
					Spread.Set(b-a);
				}
			}
Above returns 22.49 as of 8:49PM EST.

The exchange traded spread that I found is RBECLE. Based on that the spread is 22.90. What gives? Am I comparing the right spreads? Is RBECLE the crack spread i've illustrated above? Also anyone know what the point value for this is?

Thank you

Reply With Quote
  #35 (permalink)
 
SodyTexas's Avatar
 SodyTexas 
Austin TX
 
Experience: Advanced
Platform: Ninjatrader, Python, & R
Broker: RJO
Trading: Futures, Spreads
Posts: 421 since Sep 2013
Thanks Given: 117
Thanks Received: 1,085


calhawk01 View Post
hi

thanks for this discussion. till today i have been executing each leg manually. exchange traded spreads are def the way to go; less commission too!

ok so all my spreads are fine; in terms of when i compare them to my manual spread indicator, except RBOB crack spread;

The formula I have for calc RBOB spread is:

 
Code
if (CurrentBarArray[0] > 0 && CurrentBarArray[1] > 0 && CurrentBarArray[2] > 0)
{
if (BarsInProgress > 0) 

a = Closes[1][0]; // CL close
b = Closes[2][0]*42; // RBOB close * 42; so the compare apples to apples

{
Spread.Set(b-a);
}
}
Above returns 22.49 as of 8:49PM EST.

The exchange traded spread that I found is RBECLE. Based on that the spread is 22.90. What gives? Am I comparing the right spreads? Is RBECLE the crack spread i've illustrated above? Also anyone know what the point value for this is?

Thank you

22.90 sounds like the 3:2:1 Crack Spread. If you have bloomberg you can confirm with symbol CRKS321.

Calculation:
(((2*Gasoline)*42) + (Heating Oil * 42) - (3*Crude WTI))/3

Sody

"The great Traders have always been humbled by the market early on in their careers creating a deep respect for the market. Until one has this respect indelibly engraved in their makeup, the concept of money management and discipline will never be treated seriously."
Visit my NexusFi Trade Journal Reply With Quote
  #36 (permalink)
 xandman 
Chicago IL
 
Experience: Intermediate
Platform: NT CQG TWS
Trading: Futures and FOPs
Posts: 59 since Mar 2014
Thanks Given: 7
Thanks Received: 15

Exchange traded spreads have less commissions? I am trading thru Qtrader and a big FCM. I think I get charged both legs.

Reply With Quote
  #37 (permalink)
 
SodyTexas's Avatar
 SodyTexas 
Austin TX
 
Experience: Advanced
Platform: Ninjatrader, Python, & R
Broker: RJO
Trading: Futures, Spreads
Posts: 421 since Sep 2013
Thanks Given: 117
Thanks Received: 1,085


xandman View Post
Exchange traded spreads have less commissions? I am trading thru Qtrader and a big FCM. I think I get charged both legs.

Exchange spreads are charged both legs for exchange fees. Commission is based on your broker. Fyi, I don't know of a broker that does not charge for both legs.

"The great Traders have always been humbled by the market early on in their careers creating a deep respect for the market. Until one has this respect indelibly engraved in their makeup, the concept of money management and discipline will never be treated seriously."
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #38 (permalink)
 pipsalottle 
Australia
 
Experience: Intermediate
Platform: Python, R
Broker: IB
Trading: forex
Posts: 26 since Sep 2014
Thanks Given: 0
Thanks Received: 2

Hi Anyone know how to get the spreads from IQ feed into NT?

QCLZ15-QCLZ16

CRUDE OIL DEC 15/DEC 16 NYMEX SPREAD NYMEX_GBX

I could get them working with CQG but not IQ.

Reply With Quote
  #39 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,212
Thanks Received: 101,599


pipsalottle View Post
Hi Anyone know how to get the spreads from IQ feed into NT?

QCLZ15-QCLZ16

CRUDE OIL DEC 15/DEC 16 NYMEX SPREAD NYMEX_GBX

I could get them working with CQG but not IQ.

You can ask @IQFeed James on the AMA thread:



But I am fairly confident the answer is that NT doesn't support spreads.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #40 (permalink)
 pipsalottle 
Australia
 
Experience: Intermediate
Platform: Python, R
Broker: IB
Trading: forex
Posts: 26 since Sep 2014
Thanks Given: 0
Thanks Received: 2


thanks Mike, seems from all the reading that NT doesn't support and don't plan on it in NT8.

i'm developing my strategies in R and still evaluating execution systems and data feeds (thought it was going to be more straight forward, i thought the strat was the hard part ahha)

i'm an professional .net developer, any suggestions on a platform that is ideal for statistical arbitrage/pairs style strategies?

( i know it can be done in NT) but whats the best for a .net guy like me ?

Reply With Quote
Thanked by:




Last Updated on May 22, 2017


© 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