MACD Angle - NinjaTrader Programming | futures io social day trading
futures io futures trading


MACD Angle
Updated: Views / Replies:2,561 / 3
Created: by c12345 Attachments:1

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
 
Thread Tools Search this Thread
 

MACD Angle

  #1 (permalink)
Trading for Fun
PA
 
Futures Experience: None
Platform: eSignal / NinjaTrader
 
Posts: 81 since Sep 2009
Thanks: 4 given, 43 received

MACD Angle

I am looking to determine the math and logic to program a indicator to calculate the Angle of the MACD fast line. Such as to get a value returned as 60% or 30%, etc. etc.

Any ideas or suggestions on how to do this? Some ideas were linear regression, and I've seen some other ideas posted other forums, but nothing really that does this, that I can find....

If anyone has any ideas, on how to do this, I would like to discuss them with you.

Reply With Quote
 
  #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)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,599 received
Forum Reputation: Legendary


The big problem with angles is that they depend on both the horizontal and vertical scale of the chart. As both price and indicator panels of the charts use Autoscale for the y-axis, you will get different angles for the same price action depending on the volatility 50 bars ago. I never understood, how anybody could use angles. This is non-sense, unless you swear to never compress or expand neither the x-scale nor the y-scale and never change instruments.

A better concept than angles would be momentum. The chart below shows a momentum with periods 3 (green) and 6 (red) applied to the MACD. Applying an indicator to an indicator is only possible with NT7.



c12345 View Post
I am looking to determine the math and logic to program a indicator to calculate the Angle of the MACD fast line. Such as to get a value returned as 60% or 30%, etc. etc.

Any ideas or suggestions on how to do this? Some ideas were linear regression, and I've seen some other ideas posted other forums, but nothing really that does this, that I can find....

If anyone has any ideas, on how to do this, I would like to discuss them with you.


Attached Thumbnails
MACD Angle-slope-macd.jpg  

Last edited by Fat Tails; June 9th, 2010 at 06:43 AM.
Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
 
  #4 (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,238 since Jun 2009
Thanks: 29,350 given, 83,217 received

Here is some code I used before to do this. I just tore it from a indicator, I do not use Ninja anymore for charting so you'll need to make appropriate changes as the code is not plug-n-play. I removed some of the fancier part of the code because it is from an Elite indicator and this is a non-Elite section.

It shows the angle of the line in degrees.

 
Code
                            
if (ShowSlope)

            {
                
double radToDegrees 180/Math.PI;
                
                
double _slope0        = (int)(radToDegrees*(Math.Atan((collective[0]-(collective[1]+collective[2])/2)/1.5/TickSize)));
                
                
Slope.Set(_slope0);
                
                
DrawOnPricePanel    false;
                
DrawTextFixed("Slope""CMA Slope:\n0 = " _slope0.ToString("0") + "°\n1 = " _slope1.ToString("0") + "°\n2 = " _slope2.ToString("0") + "°"TextPosition.BottomRightslopecolor, new Font("Tahoma"8), Color.Empty, Color.Empty, 10);
            } 
Mike

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:

Reply



futures io > > > > > MACD Angle

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
BB MACD Jeff Castille The Elite Circle 65 August 25th, 2012 05:51 PM
Pyratool or Fixed Angle Trendline for NinjaTrader Bengaltiger Traders Hideout 5 December 23rd, 2010 09:39 AM
Trendline Angle Finder ceramictilepro NinjaTrader 5 October 9th, 2010 09:03 PM
EMA angle indicator? subterfuge NinjaTrader 8 August 28th, 2010 01:24 AM
Looking for a simple MACD strategy. MACD Xover LONG, go LONG roshareid NinjaTrader Programming 2 April 11th, 2010 09:05 PM


All times are GMT -4. The time now is 03:14 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-11 in 0.08 seconds with 20 queries on phoenix via your IP 54.226.172.30