NexusFi: Find Your Edge


Home Menu

 





Gapless indicators


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 12 posts (84 thanks)
    2. looks_two Big Mike with 7 posts (10 thanks)
    3. looks_3 viki with 6 posts (5 thanks)
    4. looks_4 cory with 4 posts (10 thanks)
      Best Posters
    1. looks_one Fat Tails with 7 thanks per post
    2. looks_two Sim22 with 4 thanks per post
    3. looks_3 cory with 2.5 thanks per post
    4. looks_4 Big Mike with 1.4 thanks per post
    1. trending_up 23,091 views
    2. thumb_up 127 thanks given
    3. group 14 followers
    1. forum 42 posts
    2. attach_file 28 attachments




 
Search this Thread

Gapless indicators

  #31 (permalink)
 
podski's Avatar
 podski 
Belgium
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader Brokerage, CQG
Trading: FDAX, FDXM ...maybe
Posts: 388 since Sep 2012
Thanks Given: 499
Thanks Received: 470


Fat Tails View Post
Following request made by @Big Mike, I have modified the SuperSmoother and coded a gapless version for use with RTH session templates.


this is good ... this is is good stuff ..

p

Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
Futures True Range Report
The Elite Circle
Are there any eval firms that allow you to sink to your …
Traders Hideout
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
GFIs1 1 DAX trade per day journal
22 thanks
NexusFi site changelog and issues/problem reporting
22 thanks
The Program
20 thanks
  #32 (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,399 since Jun 2009
Thanks Given: 33,173
Thanks Received: 101,539


supermht View Post
Hi, Mike, how to embed roofing indicator in MACD ?

Change the input series of the MACD to the RoofingFilter.

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 Started this thread Reply With Quote
Thanked by:
  #33 (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


GaplessSMA indicator with code borrowing from GaplessEMA.

Attached Thumbnails
Click image for larger version

Name:	^ADV (5 Min)  9_6_2013.jpg
Views:	350
Size:	56.9 KB
ID:	123034  
Attached Files
Elite Membership required to download: GaplessSMA.zip
Reply With Quote
  #34 (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


cory View Post
GaplessSMA indicator with code borrowing from GaplessEMA.

@cory: I am afraid that this does not work. Below attached is a chart with your indicator (red) compared to a gapless SMA. However, checking your code has led me to discover a potential bug in my own approach to coding gapless indicators, so it has been pretty useful.

Below attached is a gapless SMA, which has passed my testing.



Attached Files
Elite Membership required to download: SMAGapless.zip
Reply With Quote
  #35 (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


Fat Tails View Post
@cory: I am afraid that this does not work. Below attached is a chart with your indicator (red) compared to a gapless SMA. However, checking your code has led me to discover a potential bug in my own approach to coding gapless indicators, so it has been pretty useful.

Below attached is a gapless SMA, which has passed my testing.


...

thanks FT for fixing it, there is always gap in ^ADV so this is very useful.

Reply With Quote
  #36 (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


cory View Post
thanks FT for fixing it, there is always gap in ^ADV so this is very useful.


The problem that I have had with the SMA occurred when the period of the SMA covered more than two sessions. In this case the gap logic needs to be applied twice for the value that drops out of the SMA. This can best be achieved by creating a new gap-adjusted input series, and applying the indicator logic to that series.

Unlike for the backadjusted charts which need to adjust all prior values, after a gap the new internal input series only needs to be adapted for the N prior values, which are used for computing the SMA.

For the gapless EMA no such gap-adjusted input series was needed, because it only calls the prior value of itself.

However, if I look at the SuperSmoother, the indicator values are calculated by using a chain of prior indicator values. I therefore need to create a gap-adjusted value series, which can be used for computing the current values. The gap-adjusted input series is not needed, as the current indicator value does not use prior input values.

For oscillators, the logic is again different.

As a result I need to review the gapless SuperSmoother and the gapless RoofingFilter to make them fit for periods that cover three sessions or more.

Reply With Quote
  #37 (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

I have reviewed and updated the gapless indicators that I had coded.

The new versions can also be used with periods that cover two or more gaps.

Please report any bugs.

Attached Files
Elite Membership required to download: EMAGapless.zip
Elite Membership required to download: SMAGapless.zip
Elite Membership required to download: SuperSmootherGapless.zip
Elite Membership required to download: RoofingFilterGapless.zip
Reply With Quote
  #38 (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,399 since Jun 2009
Thanks Given: 33,173
Thanks Received: 101,539

Great job @cory and @Fat Tails!

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 Started this thread Reply With Quote
  #39 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,171
Thanks Received: 6,018


Fat Tails View Post
I have reviewed and updated the gapless indicators that I had coded.

The new versions can also be used with periods that cover two or more gaps.

Please report any bugs.

@Fat Tails

Do you know if there is a way with Ninjatrader to compare two charts of the same symbol where one would use as policy for the rollover merge back adjusted while the other chart would use merge non back adjusted. In other words, i'd like to see the GAP on a chart that occurs at the rollover time period and the effect of the merge policy on the other chart. Is that possible? Thanks.

Reply With Quote
Thanked by:
  #40 (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



trendisyourfriend View Post
@Fat Tails

Do you know if there is a way with Ninjatrader to compare two charts of the same symbol where one would use as policy for the rollover merge back adjusted while the other chart would use merge non back adjusted. In other words, i'd like to see the GAP on a chart that occurs at the rollover time period and the effect of the merge policy on the other chart. Is that possible? Thanks.

This should be possible:

(1) Set your merge policy to "MergeBackAdjusted".
(2) Open a new chart, it should be backadjusted.
(3) Now change the merge policy to "MergeNonBackAdjusted".
(4) Open another chart, it should be non-backadjusted.
(5) Compare the two charts.

Reply With Quote




Last Updated on February 4, 2014


© 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