NexusFi: Find Your Edge


Home Menu

 





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


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one TheWizard with 6 posts (11 thanks)
    2. looks_two DonStar with 5 posts (1 thanks)
    3. looks_3 romus with 5 posts (0 thanks)
    4. looks_4 rleplae with 2 posts (1 thanks)
      Best Posters
    1. looks_one TheWizard with 1.8 thanks per post
    2. looks_two Big Mike with 1 thanks per post
    3. looks_3 aligator with 1 thanks per post
    4. looks_4 rleplae with 0.5 thanks per post
    1. trending_up 8,319 views
    2. thumb_up 18 thanks given
    3. group 11 followers
    1. forum 23 posts
    2. attach_file 5 attachments




 
Search this Thread

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

  #1 (permalink)
 
DonStar's Avatar
 DonStar 
Dallas, TX
 
Experience: Intermediate
Platform: ToS, TradeGuider, eSignal, AmiBroker
Broker: TD Ameritrade/eSignal
Trading: Stocks
Posts: 77 since Dec 2011
Thanks Given: 28
Thanks Received: 43

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


Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Futures True Range Report
The Elite Circle
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Exit Strategy
NinjaTrader
Deepmoney LLM
Elite Quantitative GenAI/LLM
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
Battlestations: Show us your trading desks!
26 thanks
The Program
17 thanks
  #3 (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,396 since Jun 2009
Thanks Given: 33,172
Thanks Received: 101,534


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

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:
  #4 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: Ninjatrader®
Broker: CQG, Kinetick
Trading: Gameplay Klownbine® Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731

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
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #5 (permalink)
 
aligator's Avatar
 aligator 
Las Vegas, NV
Market Wizard
 
Experience: Advanced
Platform: Abacus, Slide Rule, HP-65
Trading: Futures, Stocks, Options
Posts: 3,615 since Aug 2010
Thanks Given: 1,071
Thanks Received: 5,988

@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



Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #6 (permalink)
 taichitrader 
Budapest/Hungary
 
Experience: Intermediate
Platform: Ninjatrader
Trading: gold, oil, TF
Posts: 16 since Jun 2014
Thanks Given: 33
Thanks Received: 27

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
Thanked by:
  #7 (permalink)
 
DonStar's Avatar
 DonStar 
Dallas, TX
 
Experience: Intermediate
Platform: ToS, TradeGuider, eSignal, AmiBroker
Broker: TD Ameritrade/eSignal
Trading: Stocks
Posts: 77 since Dec 2011
Thanks Given: 28
Thanks Received: 43

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

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #8 (permalink)
 
DonStar's Avatar
 DonStar 
Dallas, TX
 
Experience: Intermediate
Platform: ToS, TradeGuider, eSignal, AmiBroker
Broker: TD Ameritrade/eSignal
Trading: Stocks
Posts: 77 since Dec 2011
Thanks Given: 28
Thanks Received: 43


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

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #9 (permalink)
 
TheWizard's Avatar
 TheWizard 
Houston, TX
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Optimus Futures, AMP, CQG
Trading: 6E
Posts: 1,731 since Jun 2009
Thanks Given: 517
Thanks Received: 4,224


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
Elite Membership required to download: LeaderOfMacdv2.zip
Reply With Quote
Thanked by:
  #10 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


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'

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on March 16, 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