NexusFi: Find Your Edge


Home Menu

 





Removing The Gap Between Sessions


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one tst1 with 5 posts (1 thanks)
    2. looks_two cory with 2 posts (0 thanks)
    3. looks_3 Fat Tails with 1 posts (0 thanks)
    4. looks_4 vvhg with 1 posts (0 thanks)
    1. trending_up 4,683 views
    2. thumb_up 1 thanks given
    3. group 5 followers
    1. forum 10 posts
    2. attach_file 5 attachments




 
Search this Thread

Removing The Gap Between Sessions

  #1 (permalink)
 tst1 
Magadan Russia
 
Posts: 79 since Nov 2010

Hi all,

There is a little problem NinjaTrader`s crew couldn`t solve as of yet.When you imply sessions template,ocasionally there is a gap in price which maybe not suitable for many trading systems.I have a little code that,partially,solves this problem,but keeps the data a bit 'messy'.So i wonder,is there any way to accomplish that problem within Ninja sessions template,not using the code?

Thanks to anyone in advance!

Attached Thumbnails
Click image for larger version

Name:	GAP.jpg
Views:	276
Size:	173.4 KB
ID:	80777  
Attached Files
You must login first File Type: zip NoGapChart .zip (3.8 KB, 39 views)
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Looking for an MQL4 MetaTrader programmer/coder
The Elite Circle
Request for MACD with option to use different MAs for fa …
NinjaTrader
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Ninja Trader 8 Drawing Tools Wanted
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
59 thanks
NexusFi site changelog and issues/problem reporting
46 thanks
Battlestations: Show us your trading desks!
34 thanks
GFIs1 1 DAX trade per day journal
31 thanks
What percentage per day is possible? [Poll]
20 thanks

  #3 (permalink)
 
vvhg's Avatar
 vvhg 
Northern Germany
 
Experience: Intermediate
Platform: NT
Trading: FDAX, CL
Posts: 1,583 since Mar 2011
Thanks Given: 1,016
Thanks Received: 2,824



tst1 View Post
Hi all,

There is a little problem NinjaTrader`s crew couldn`t solve as of yet.When you imply sessions template,ocasionally there is a gap in price which maybe not suitable for many trading systems.I have a little code that,partially,solves this problem,but keeps the data a bit 'messy'.So i wonder,is there any way to accomplish that problem within Ninja sessions template,not using the code?

Thanks to anyone in advance!

So basically you want to do something similar than back adjusted continuous contract, only that you want to eliminate the overnight gap?

I highly doubt that there is an indicator-free way of doing that.


vvhg

Hic Rhodos, hic salta.
Reply With Quote
  #4 (permalink)
 tst1 
Magadan Russia
 
Posts: 79 since Nov 2010


vvhg View Post
So basically you want to do something similar than back adjusted continuous contract, only that you want to eliminate the overnight gap?

I highly doubt that there is an indicator-free way of doing that.


vvhg


Yes,basically,what i want is to eliminate the gapping between sessions.The code i have is somewhat good,but there are to problems.

1.The chart is messy due to doubling of the data.
2.The second problem is that i`d want to tie the indicators to the degapping data and not to the real data.Using indicators with real time data with gaps wouldnt be correct.

Attached Thumbnails
Click image for larger version

Name:	GAP1.jpg
Views:	203
Size:	191.5 KB
ID:	80779  
Reply With Quote
  #5 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


tst1 View Post
Hi all,

There is a little problem NinjaTrader`s crew couldn`t solve as of yet.When you imply sessions template,ocasionally there is a gap in price which maybe not suitable for many trading systems.I have a little code that,partially,solves this problem,but keeps the data a bit 'messy'.So i wonder,is there any way to accomplish that problem within Ninja sessions template,not using the code?

Thanks to anyone in advance!

for a cleaner look, set Show no gap chart only = true.

Reply With Quote
  #6 (permalink)
 tst1 
Magadan Russia
 
Posts: 79 since Nov 2010


cory View Post
for a cleaner look, set Show no gap chart only = true.


Thanks Cory,i did try this option,but for whatever reason it doesnt show no gap only.Any suggestions?

Reply With Quote
  #7 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


tst1 View Post
Thanks Cory,i did try this option,but for whatever reason it doesnt show no gap only.Any suggestions?

.........................................................

Attached Thumbnails
Click image for larger version

Name:	ng.png
Views:	268
Size:	181.3 KB
ID:	80785  
Reply With Quote
  #8 (permalink)
 tst1 
Magadan Russia
 
Posts: 79 since Nov 2010


cory View Post
.........................................................

Thank you,i found the problem.There was an indicator that conflicted with the NoGap chart code.

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,102


tst1 View Post
Hi all,

There is a little problem NinjaTrader`s crew couldn`t solve as of yet.When you imply sessions template,ocasionally there is a gap in price which maybe not suitable for many trading systems.I have a little code that,partially,solves this problem,but keeps the data a bit 'messy'.So i wonder,is there any way to accomplish that problem within Ninja sessions template,not using the code?

Thanks to anyone in advance!

@tst1: If you do not mind my commentary, the session that you selected is completely irregular. You probably never traded any crude oil futures ...

CL is traded at New York, the regular session starts at 9:00 AM EST and ends at 2:30 PM EST, see CME contract specifications. The most important price of the day is the official settlement price which is determined at 2:30 PM EST. Your session starts at 3:00 AM EST and ends at 12:00 PM EST. So you do neither catch the settlement at 2:30 PM nor the close at 5:15 PM.

This is MADNESS.

Now to make things worse, you try to eliminate a gap that does not exist, with the only exception of your own chart. So you first create the artificial gap and then try to eliminate it. The result is a chart with false sessions and false price data. Eliminating the gap also falsifies the prior day's price data including high and low. Swings for measuring retracements are artificially distorted. It is about the worst crude oil chart that I have ever seen.

I suggest reading some literature on trading crude oil first, you could for example start with the Logical Trader by Mark Fisher. I also would like to recommend the thread by @mfbreakout, which can be found here.



A simple crude oil chart is attached.



Reply With Quote
  #10 (permalink)
 tst1 
Magadan Russia
 
Posts: 79 since Nov 2010



Fat Tails View Post
@tst1: If you do not mind my commentary, the session that you selected is completely irregular. You probably never traded any crude oil futures ...

CL is traded at New York, the regular session starts at 9:00 AM EST and ends at 2:30 PM EST, see CME contract specifications. The most important price of the day is the official settlement price which is determined at 2:30 PM EST. Your session starts at 3:00 AM EST and ends at 12:00 PM EST. So you do neither catch the settlement at 2:30 PM nor the close at 5:15 PM.

This is MADNESS.

Now to make things worse, you try to eliminate a gap that does not exist, with the only exception of your own chart. So you first create the artificial gap and then try to eliminate it. The result is a chart with false sessions and false price data. Eliminating the gap also falsifies the prior day's price data including high and low. Swings for measuring retracements are artificially distorted. It is about the worst crude oil chart that I have ever seen.

I suggest reading some literature on trading crude oil first, you could for example start with the Logical Trader by Mark Fisher. I also would like to recommend the thread by @mfbreakout, which can be found here.



A simple crude oil chart is attached.



Thanks for your contribution!

Reply With Quote





Last Updated on January 8, 2016


© 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