NexusFi: Find Your Edge


Home Menu

 





Help for a new strategy


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one runner with 5 posts (0 thanks)
    2. looks_two traderwerks with 2 posts (2 thanks)
    3. looks_3 Fat Tails with 2 posts (3 thanks)
    4. looks_4 Big Mike with 1 posts (2 thanks)
    1. trending_up 3,412 views
    2. thumb_up 7 thanks given
    3. group 3 followers
    1. forum 10 posts
    2. attach_file 0 attachments




 
Search this Thread

Help for a new strategy

  #1 (permalink)
 
runner's Avatar
 runner 
Milan, Italy
 
Experience: Intermediate
Platform: Overcharts,NinjaT, StoneX
Broker: Rithmic, StoneXain
Trading: CL Futures, Cme, Eurex
Posts: 272 since Nov 2010
Thanks Given: 633
Thanks Received: 1,479

Hi.
I'm a newbie and I'd like to write a new strategy
My expression imput is: when ES 03-12:Bid - (minus) ES 06-12:Ask - FDAX 03-12:Bid + FDAX 06-12:Ask > 50 (for example) then SELL FDAX 06-12:Bid and at the same time BUY ES 03-12: Ask.
Stop Loss in case the expression is > 200
Close Trade when expression is <=1
No Stop loss
Using only 1 lot for each future
Really need help
thanks

Follow me on Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
MC PL editor upgrade
MultiCharts
NexusFi Journal Challenge - May 2024
Feedback and Announcements
How to apply profiles
Traders Hideout
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
45 thanks
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Bigger Wins or Fewer Losses?
24 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #3 (permalink)
 
runner's Avatar
 runner 
Milan, Italy
 
Experience: Intermediate
Platform: Overcharts,NinjaT, StoneX
Broker: Rithmic, StoneXain
Trading: CL Futures, Cme, Eurex
Posts: 272 since Nov 2010
Thanks Given: 633
Thanks Received: 1,479


The strategy must run on NT7 platform.
I think my idea could help other trader to go in tre "spread" direction if someone could solve this. Have found an indicator named "_ultimate expression" but the .cs file is not editable.

thanks
waiting......

Follow me on Twitter Started this thread Reply With Quote
  #4 (permalink)
 traderwerks   is a Vendor
 
Posts: 692 since Jun 2009
Thanks Given: 436
Thanks Received: 465


runner View Post
Hi.
My expression imput is: when ES 03-12:Bid - (minus) ES 06-12:Ask - FDAX 03-12:Bid + FDAX 06-12:Ask > 50 (for example) then SELL FDAX 06-12:Bid and at the same time BUY ES 03-12: Ask.
thanks

Are you sure about this expression ?

Math. A gateway drug to reality.
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,102


runner View Post
Hi.
I'm a newbie and I'd like to write a new strategy
My expression imput is: when ES 03-12:Bid - (minus) ES 06-12:Ask - FDAX 03-12:Bid + FDAX 06-12:Ask > 50 (for example) then SELL FDAX 06-12:Bid and at the same time BUY ES 03-12: Ask.
Stop Loss in case the expression is > 200
Close Trade when expression is <=1
No Stop loss
Using only 1 lot for each future
Really need help
thanks

There are several problems with this idea:


The Tool

If you want to trade spreads, NinjaTrader is certainly not the platform of your choice. You should go for X-Trader or something else.


The Spread Formula

Your spread does not make sense. ES trades at around 1350, the FDAX around 6700. You would therefore need to calculate a spread from 5 contracts ES against 1 contract FDAX.


Total Return Index vs Price Index

FDAX is a future on a total return index while ES is future based on a price index. That means that you benefit from dividends if your are long FDAX 06-12, but that you are not credited dividends if you are long ES 03-12.

As FDAX is a total return index, this means that it is in permanent contango, as dividend expectations exceed the financial cost associated with current low interest rates. ES however, is in backwardation, and will remain there, as it is a price index. The spread that you have defined, will therefore never ever revert to 0. So you do not need to write a strategy for an event that will never happen.


Conclusion


You gave us a false formula for a spread, which will never revert to the mean and want to code a strategy by using a tool which is not suited for the purpose.

Don't you think you should start with something simpler? I hope you do not mind my comment....

Reply With Quote
Thanked by:
  #6 (permalink)
 
runner's Avatar
 runner 
Milan, Italy
 
Experience: Intermediate
Platform: Overcharts,NinjaT, StoneX
Broker: Rithmic, StoneXain
Trading: CL Futures, Cme, Eurex
Posts: 272 since Nov 2010
Thanks Given: 633
Thanks Received: 1,479


Fat Tails View Post
There are several problems with this idea:


The Tool

If you want to trade spreads, NinjaTrader is certainly not the platform of your choice. You should go for X-Trader or something else.


The Spread Formula

Your spread does not make sense. ES trades at around 1350, the FDAX around 6700. You would therefore need to calculate a spread from 5 contracts ES against 1 contract FDAX.


Total Return Index vs Price Index

FDAX is a future on a total return index while ES is future based on a price index. That means that you benefit from dividends if your are long FDAX 06-12, but that you are not credited dividends if you are long ES 03-12.

As FDAX is a total return index, this means that it is in permanent contango, as dividend expectations exceed the financial cost associated with current low interest rates. ES however, is in backwardation, and will remain there, as it is a price index. The spread that you have defined, will therefore never ever revert to 0. So you do not need to write a strategy for an event that will never happen.


Conclusion


You gave us a false formula for a spread, which will never revert to the mean and want to code a strategy by using a tool which is not suited for the purpose.

Don't you think you should start with something simpler? I hope you do not mind my comment....


The formula is not the exact one I'd like to use.
The idea is to trade the calendar spread between ES march and ES June (or other futures contracts - NQ, YM, etc) and buy Ask March / sell Bid June if the condition is true (Bid June - Ask March - Ask June + Bid March > 2) at the same time, then close if the formula =< 0

I agree about differences between FDAX and ES (lots 5 to 1 and price index/ return index), it was only an example
I hope this clarifies my idea.
thanks

Follow me on Twitter Started this thread Reply With Quote
  #7 (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,102


runner View Post
The formula is not the exact one I'd like to use.
The idea is to trade the calendar spread between ES march and ES June (or other futures contracts - NQ, YM, etc) and buy Ask March / sell Bid June if the condition is true (Bid June - Ask March - Ask June + Bid March > 2) at the same time, then close if the formula =< 0

I agree about differences between FDAX and ES (lots 5 to 1 and price index/ return index), it was only an example
I hope this clarifies my idea.
thanks

If you want to do that type of arbitrage, you will certainly need

-> direct access to EUREX and CME via membership (seat)
-> fast connection lines
-> other software than a cheap retail package

I would say that it is an occupation, where the retail trader cannot compete. Before you even trigger the order, one of the other guys will have already closed the window.

But of course it is relatively easy to code a NinjaTrader strategy. Add a few data series, then make sure that you execute the back months first, as they are not very liquid. You could ask somebody to write a strategy for you. This would at least have some educational value.

Reply With Quote
  #8 (permalink)
 
runner's Avatar
 runner 
Milan, Italy
 
Experience: Intermediate
Platform: Overcharts,NinjaT, StoneX
Broker: Rithmic, StoneXain
Trading: CL Futures, Cme, Eurex
Posts: 272 since Nov 2010
Thanks Given: 633
Thanks Received: 1,479


Fat Tails View Post
If you want to do that type of arbitrage, you will certainly need

-> direct access to EUREX and CME via membership (seat)
-> fast connection lines
-> other software than a cheap retail package

I would say that it is an occupation, where the retail trader cannot compete. Before you even trigger the order, one of the other guys will have already closed the window.

But of course it is relatively easy to code a NinjaTrader strategy. Add a few data series, then make sure that you execute the back months first, as they are not very liquid. You could ask somebody to write a strategy for you. This would at least have some educational value.

Thanks for your reply.
Could you give me some info regarding guys that will help me to write this strategy? As you wrote, this could have some educational value and maybe give somebody else an input for a different and better strategy.
regards

Follow me on Twitter Started this thread Reply With Quote
  #9 (permalink)
 traderwerks   is a Vendor
 
Posts: 692 since Jun 2009
Thanks Given: 436
Thanks Received: 465


runner View Post
Thanks for your reply.
Could you give me some info regarding guys that will help me to write this strategy? As you wrote, this could have some educational value and maybe give somebody else an input for a different and better strategy.
regards

It is not that hard of a strategy. I think you could learn a lot by writing it, so give it a go. There is a lot of information on the NinjaTrader site if you want to go that route.

Have you looked at things like the CQG spreader ?

Math. A gateway drug to reality.
Reply With Quote
Thanked by:
  #10 (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,446 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,608



traderwerks View Post
Have you looked at things like the CQG spreader ?

Agree, that if you are serious about this you need X_Trader Spreader or CQG Spreader, so the algo runs server-side and not client side, improving chances of arbitrage success.

You can find webinars on futures.io (formerly BMT) that cover both platforms spreader capabilities.

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:




Last Updated on February 9, 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