NexusFi: Find Your Edge


Home Menu

 





MACD with Bollinger bands for IRT


Discussion in Platforms and Indicators

Updated
      Top Posters
    1. looks_one trendisyourfriend with 5 posts (1 thanks)
    2. looks_two LS Chad with 4 posts (3 thanks)
    3. looks_3 Big Mike with 1 posts (0 thanks)
    4. looks_4 RM99 with 1 posts (0 thanks)
    1. trending_up 9,299 views
    2. thumb_up 6 thanks given
    3. group 6 followers
    1. forum 13 posts
    2. attach_file 3 attachments




 
Search this Thread

MACD with Bollinger bands for IRT

  #1 (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

As this is quite a popular indicator i thought it might be a good idea to recreate such an indicator for IRT.

To this end, i'd like to ask a Ninja coder what is the logic behind the code of the MACD with Bollinger bands then maybe an IRT coder might take the challenge and recreate it.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Build trailing stop for micro index(s)
Psychology and Money Management
Deepmoney LLM
Elite Quantitative GenAI/LLM
Are there any eval firms that allow you to sink to your …
Traders Hideout
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
56 thanks
Funded Trader platforms
44 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #2 (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,177
Thanks Received: 101,541

If it isn't Elite, then post the C# code for the indicator - that will help.

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
  #3 (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


FT explains it here

Reply With Quote
  #4 (permalink)
 RM99 
Austin, TX
 
Experience: Advanced
Platform: TradeStation
Trading: Futures
Posts: 839 since Mar 2011
Thanks Given: 124
Thanks Received: 704

Take a look at your DOM near BB's and you'll see there's more people camped out there than Wal Mart before Black Friday.

If you're going to use BB's for exits, consider exiting some interval prior to the BB's, because you'll find it's very difficult/stubborn to get fills on limit orders or you'll get a ton of slippage on market orders.

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


RM99 View Post
Take a look at your DOM near BB's and you'll see there's more people camped out there than Wal Mart before Black Friday.

If you're going to use BB's for exits, consider exiting some interval prior to the BB's, because you'll find it's very difficult/stubborn to get fills on limit orders or you'll get a ton of slippage on market orders.

It has not been a problem for me on the ES, RUSSELL or the Euro although it can happen. Here is how i typically use it on the ES to take advantage of a pullback. I use two instances of the MACDBBlines and use the faster instance to gauge the overbought condition of a pullback in a directional move with momentum (evaluated with the triggerlines). For the pullback conditons, i usually wait for the faster instance of the MACD to cross the zero line opposite to the immediate trend to consider an entry.

Attached Thumbnails
Click image for larger version

Name:	BBMACD_usage.jpg
Views:	454
Size:	86.9 KB
ID:	37960  
Started this thread Reply With Quote
  #6 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,371


trendisyourfriend View Post
It has not been a problem for me on the ES, RUSSELL or the Euro although it can happen. Here is how i typically use it on the ES to take advantage of a pullback. I use two instances of the MACDBBlines and use the faster instance to gauge the overbought condition of a pullback in a directional move with momentum (evaluated with the triggerlines). For the pullback conditons, i usually wait for the faster instance of the MACD to cross the zero line opposite to the immediate trend to consider an entry.

I thought you were a trend line break trader. When did you start trading the MACD?

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


monpere View Post
I thought you were a trend line break trader. When did you start trading the MACD?

When i started trading in 2008, i was using a fast MACD(3,6,3) to enter and fast StockRSI(8,8,3) to exit using a pyramid scheme for the money management. At that time, i was trading the Forex market with MT4. I stopped trading the Forex and switched to the Futures market (S&P 500). All of the things i was used to, did not work on the S&P 500 so as many i started a quest to find a method and found out NexGen. I subscribed to their room for 3-4 months but did not buy it in the end as i found everything i needed here free. Later on, i added Market Profile to replace the Fibonacci stuff i was used to with NexGen. All in all, i have always been using a MACD to gauge certain conditions like divergences and pullbacks. But but but, since reading BigMike's elusive price action thread and using ema's momentum bar type, i use less indicators but i still like to look at the MACD on some of the charts that i use to change the monotony of looking at the same growing grass field.

Started this thread Reply With Quote
Thanked by:
  #8 (permalink)
 
LS Chad's Avatar
 LS Chad 
Milton, GA
 
Experience: Intermediate
Platform: Investor/RT, MarketDelta
Broker: DTN IQFeed
Trading: ES
Posts: 165 since Apr 2010
Thanks Given: 2
Thanks Received: 144

Try importing this chart and see how it looks:

[U]http://www.charthub.com/images/2011/05/11/MACDBB.png[/U]

Chad

Follow me on Twitter Reply With Quote
Thanked by:
  #9 (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

Thanks Chad,

I took a screen capture to compare both Ninja version and yours and there seems to be a difference in the way the outside bands are processed.

Here is how the Ninja version is calculated:

Take the raw MACD (not the signal line or the histogram), then

-> calculate an EMA(10) from that MACD
-> calculate the StdDev (10) from that MACD

Typically for Bollinger Bands you calculate the standard deviation from the data points of the EMA, then add and subtract two standard deviations to get the channel lines.

In this case you will not calculate the standard deviation from the EMA, but directly from the raw MACD. Then add and subtract one standard deviation to get the bands.

The dots just represent the raw MACD.

Attached Thumbnails
Click image for larger version

Name:	bbmacd.jpg
Views:	327
Size:	248.1 KB
ID:	38698  
Started this thread Reply With Quote
  #10 (permalink)
 
LS Chad's Avatar
 LS Chad 
Milton, GA
 
Experience: Intermediate
Platform: Investor/RT, MarketDelta
Broker: DTN IQFeed
Trading: ES
Posts: 165 since Apr 2010
Thanks Given: 2
Thanks Received: 144


OK, few questions.

In your chart, the green/red dots are the raw MACD, computed as the difference between and exponential 12 and 26 period MA, correct? I think I'm matching up fine on that part.

The center band then appears to be a 10 period exponential smoothing of the MACD line described above, correct? I seem to be lining up fine there as well...we'll call this the EMA_MACD line.

The bands are now apparently drawn around the EMA_MACD line. Some standard deviation is added to and subtracted from the EMA_MACD line. It appears it could be a 10 period standard deviation of the original MACD.

Take a look at this. I think this may do it.

Images | ChartHub.com

Chad

Follow me on Twitter Reply With Quote




Last Updated on May 7, 2019


© 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