Indicator that will tell us when the MACD is going to "turn" - NinjaTrader Programming | futures io social day trading
futures io futures trading


Indicator that will tell us when the MACD is going to "turn"
Updated: Views / Replies:3,276 / 23
Created: by DonStar Attachments:5

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 5  
 
Thread Tools Search this Thread
 

Indicator that will tell us when the MACD is going to "turn"

  #1 (permalink)
Elite Member
Dallas, TX
 
Futures Experience: Intermediate
Platform: ToS, TradeGuider, eSignal, AmiBroker
Broker/Data: TD Ameritrade/eSignal
Favorite Futures: Stocks
 
DonStar's Avatar
 
Posts: 68 since Dec 2011
Thanks: 28 given, 41 received

Indicator that will tell us when the MACD is going to "turn"

Hi All,

I have been toying with the idea of creating an indicator that will "tell us" when it is going to "turn."

Let's use the MACD as an example: is it possible to know "in advance" when the MACD is going to turn up or down?

In the screenshot below there is a black line running through price. I will call this line the "turn line." Note that at #1 price moves from below the turn line to cross and close above the turn line. At #2 you can see that the MACD (with trigger line and histogram turned off) turned up when this occurred.

At #3, price is about to cross below the turn line which would tell us the MACD is getting ready to turn down.

Here is a formula that I have been working with to plot the "turn line."

I haven't been able to get it to work in NinjaTrader:

TurnLine(x) = (M2 / (M2 - M1)) * C(X + M1) - (M1 / (M2 - M1)) * C(X + M2)

Where :x = bar number where the current bar is bar 1 and yesterday is bar 2 etc.
TurnLine(x) = MACD Price Turns on Bar x
C(x) = Closing Price on bar x
M1 = Simple MACD short moving average
M2 = Simple MACD long moving average

Any one have any ideas how to adapt this into an indicator in NinjaTrader?

Thanks for all your great work and expertise.

Don

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
The following user says Thank You to DonStar for this post:
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,353 given, 83,234 received


Search for predictive indicators on futures.io (formerly BMT). I believe code for a few common ones was posted a while back.

Sent from my LG Optimus G Pro

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:
 
  #4 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received

Predictive Indicators

The most logical predictive approach that I have seen is that described by John Ehlers in his recent book, as reprised in his futures.io (formerly BMT) webinars.

"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett
Reply With Quote
The following user says Thank You to Zondor for this post:
 
  #5 (permalink)
Market Wizard
Las Vegas, NV
 
Futures Experience: Advanced
Platform: Abacus, Slide Rule, HP-65, Metastock, TOS, NT
Favorite Futures: Futures
 
aligator's Avatar
 
Posts: 3,424 since Aug 2010
Thanks: 1,053 given, 5,822 received
Forum Reputation: Legendary

@DonStar,

Either your formula is wrong or your definition of terms. For example C(X+M1) or C(X+M2) does not make sense.

It is easy to write the indicator if you correct your formula or your definitions.



DonStar View Post
Hi All,

I have been toying with the idea of creating an indicator that will "tell us" when it is going to "turn."

Let's use the MACD as an example: is it possible to know "in advance" when the MACD is going to turn up or down?

In the screenshot below there is a black line running through price. I will call this line the "turn line." Note that at #1 price moves from below the turn line to cross and close above the turn line. At #2 you can see that the MACD (with trigger line and histogram turned off) turned up when this occurred.

At #3, price is about to cross below the turn line which would tell us the MACD is getting ready to turn down.

Here is a formula that I have been working with to plot the "turn line."

I haven't been able to get it to work in NinjaTrader:

TurnLine(x) = (M2 / (M2 - M1)) * C(X + M1) - (M1 / (M2 - M1)) * C(X + M2)

Where :x = bar number where the current bar is bar 1 and yesterday is bar 2 etc.
TurnLine(x) = MACD Price Turns on Bar x
C(x) = Closing Price on bar x
M1 = Simple MACD short moving average
M2 = Simple MACD long moving average

Any one have any ideas how to adapt this into an indicator in NinjaTrader?

Thanks for all your great work and expertise.

Don

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Reply With Quote
The following user says Thank You to aligator for this post:
 
  #6 (permalink)
Elite Member
Budapest/Hungary
 
Futures Experience: Intermediate
Platform: Ninjatrader
Favorite Futures: gold, oil, TF
 
Posts: 15 since Jun 2014
Thanks: 33 given, 26 received

Hey Guys!
Im new to the forum, so I don't know if I'm allowed to suggest this, but the "macdiver" indicator over at the Intentional trader, is pretty sweet. Been using it for about 6 months and am very impressed. It is based off of divergence of the MACD. The awesome part about it is that the indicator appears at the OPEN of the bar, which does take a little getting used to since it can feel like you are standing in front of a MAC truck (pardon the pun). But using Support-resistance barriers in conjunction with it has proved profitable for me.
Hope that helps.

Cheers!

Reply With Quote
The following user says Thank You to taichitrader for this post:
 
  #7 (permalink)
Elite Member
Dallas, TX
 
Futures Experience: Intermediate
Platform: ToS, TradeGuider, eSignal, AmiBroker
Broker/Data: TD Ameritrade/eSignal
Favorite Futures: Stocks
 
DonStar's Avatar
 
Posts: 68 since Dec 2011
Thanks: 28 given, 41 received

Hi All: Thank you for your responses! For some reason I am not receiving emails when you posted replies.

I will look into this (so I actually communicate with you) and I will look at the formula and see if I can be more descriptive.

Don


Last edited by DonStar; July 26th, 2014 at 05:29 PM. Reason: I can't seem to spell my name these days...
Reply With Quote
 
  #8 (permalink)
Elite Member
Dallas, TX
 
Futures Experience: Intermediate
Platform: ToS, TradeGuider, eSignal, AmiBroker
Broker/Data: TD Ameritrade/eSignal
Favorite Futures: Stocks
 
DonStar's Avatar
 
Posts: 68 since Dec 2011
Thanks: 28 given, 41 received


aligator View Post
@DonStar,

Either your formula is wrong or your definition of terms. For example C(X+M1) or C(X+M2) does not make sense.

It is easy to write the indicator if you correct your formula or your definitions.


TurnLine(x) = (M2 / (M2 - M1)) * C(X + M1) - (M1 / (M2 - M1)) * C(X + M2)

Where :x = bar number where the current bar is bar 1 and yesterday is bar 2 etc.
TurnLine(x) = MACD Price Turns on Bar x
C(x) = Closing Price on bar x
M1 = Simple MACD short moving average
M2 = Simple MACD long moving average

I'm trying to say that x = the bar number of the current bar. For some programs it starts as 0 and for other programs it starts as 1.

Let's say it is 0.

Then Result 1 = (M2 / (M2 - M1)) = (Simple MACD long moving average divided by (Simple MACD long moving average minus Simple MACD short moving average))

Result 2 = C(X + M1) = Today's Close * (0 + Simple MACD short moving average)

Result 3 = (M1 / (M2 - M1)) = (Simple MACD short moving average / (Simple MACD long moving average - Simple MACD short moving average))

Result 4 = C(X + M2) = Today's Close * (0 + Simple MACD long moving average)

So, for day 0 =TurnLine(0) = Result 1 * Result 2 - Result 3 * Result 4

Move to the next bar and X=1, then

TurnLine(1) = Result 1 * Result 2 - Result 3 * Result 4

I want to plot TurnLine(x) over price in the price pane.

Whew... I'm dizzy...

If I'm thinking wrong, please tell me.

Thanks all

Don

Reply With Quote
 
  #9 (permalink)
Market Wizard
Houston, TX
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Optimus Futures
Favorite Futures: 6E
 
TheWizard's Avatar
 
Posts: 1,711 since Jun 2009
Thanks: 509 given, 4,072 received


DonStar View Post
Hi All,

I have been toying with the idea of creating an indicator that will "tell us" when it is going to "turn."

Let's use the MACD as an example: is it possible to know "in advance" when the MACD is going to turn up or down?

In the screenshot below there is a black line running through price. I will call this line the "turn line." Note that at #1 price moves from below the turn line to cross and close above the turn line. At #2 you can see that the MACD (with trigger line and histogram turned off) turned up when this occurred.

At #3, price is about to cross below the turn line which would tell us the MACD is getting ready to turn down.

Here is a formula that I have been working with to plot the "turn line."

I haven't been able to get it to work in NinjaTrader:

TurnLine(x) = (M2 / (M2 - M1)) * C(X + M1) - (M1 / (M2 - M1)) * C(X + M2)

Where :x = bar number where the current bar is bar 1 and yesterday is bar 2 etc.
TurnLine(x) = MACD Price Turns on Bar x
C(x) = Closing Price on bar x
M1 = Simple MACD short moving average
M2 = Simple MACD long moving average

Any one have any ideas how to adapt this into an indicator in NinjaTrader?

Thanks for all your great work and expertise.

Don

Here's one I ran across years ago on the Ninja support forum. Modified it to draw vertical line on price panel / added background coloring (back in my "let's make indicators better" days) about 5 or 6 years ago. Good luck on your journey. I'd be happy to see the end result.

After all, it's what you learn AFTER you know it all, that counts!
Attached Files
Register to download File Type: zip LeaderOfMacdv2.zip (4.8 KB, 89 views)
Reply With Quote
The following 3 users say Thank You to TheWizard for this post:
 
  #10 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,501 since Sep 2013
Thanks: 1,706 given, 3,708 received
Forum Reputation: Legendary

quick scan


i did a quick scan
couldn't find any CCI predictive indicator

sometimes i put a stop buy (long) or stop sell (short)
to get into a trade
especially on GC (gold) as this is fast moving

but it has happened that my point chosen is not a CCI cross-over
so an indicator that tells me what price the CCI would cross over, would be helpful
i do understand that the price might change in the next couple bars, depend on the action

but any level indication would be 'nice'

Reply With Quote
The following user says Thank You to rleplae for this post:

Reply



futures io > > > > > Indicator that will tell us when the MACD is going to "turn"

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Turn around on "using of decompiled source code is prohibited" from build 500 dream3r MetaTrader 2 March 7th, 2014 08:04 AM
Fukushima: "China Syndrome Is Inevitable" ... "Huge Steam Explosions", or "Nuclear Bo Quick Summary News and Current Events 0 November 22nd, 2011 02:50 AM
How to change "Stop Loss" and "Take Profit" in "shElderImpulse" Strategy javed759 NinjaTrader 1 November 1st, 2011 11:44 PM
"mid", "buy", "sell" volumes lokgotkent Traders Hideout 6 September 30th, 2011 02:24 PM
RJay's "Trader Volume" and "Trader Tick" Indicator Suites RJay The Elite Circle 20 December 20th, 2010 06:01 PM


All times are GMT -4. The time now is 05:51 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-15 in 0.18 seconds with 21 queries on phoenix via your IP 54.145.16.43