MACD with colours wanted - NinjaTrader | futures io social day trading
futures io futures trading


MACD with colours wanted
Updated: Views / Replies:5,480 / 21
Created: by alright Attachments:7

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

MACD with colours wanted

  #11 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received

hello marker,
welcome to BigMikeTrading - forum !

if you have questions, please provide as much explaination of your topic as you can. if folks dont understand what you mean you will get no answers.
so the best way is to post a screenshot of chart with the indicator and explain it with some more words.

sorry, but with questions like :

where is the line ?
OR
please i need 4 colors !

noone really knows what people are talking about.

hope that makes sense.

looking forward to hear from you !



max-td
Reply With Quote
The following user says Thank You to max-td for this post:
 
  #12 (permalink)
Membership Temporarily Revoked
Texas
 
Futures Experience: Intermediate
Platform: Ninja Trader
Favorite Futures: TF
 
Posts: 113 since Jun 2010
Thanks: 8 given, 51 received

I'm just wondering how to get the ccs file into ninja trader? Anyone Anyone?

Reply With Quote
 
  #13 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,216 since Jun 2009
Thanks: 628 given, 6,314 received
Forum Reputation: Legendary


we get this question one a month
https://futures.io/ninjatrader-programming/967-importing-cs-file-indicator-strategy.html

Reply With Quote
The following user says Thank You to cory for this post:
 
  #14 (permalink)
Elite Member
Bellingham, WA
 
Futures Experience: Intermediate
Platform: Ninja
Broker/Data: Zen-Fire
Favorite Futures: 6E, CL
 
Dragon's Avatar
 
Posts: 494 since Aug 2009
Thanks: 747 given, 253 received

wiki much?

Reply With Quote
 
  #15 (permalink)
Market Wizard Apprectice
New York City, USA
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: ES, CL, 6E
 
futurestrader1's Avatar
 
Posts: 147 since Jul 2010
Thanks: 81 given, 40 received

Here is what i want...

Based on a MACD with only the AVERAGE line plotting as the line and the histogram bars.

This one has a neutral plot on the histogram...i don't know how.

easy visible signals on the line is nice to have from green to red based on the zero line.

Attached Thumbnails
MACD with colours wanted-macdpaints.png  
Reply With Quote
 
  #16 (permalink)
 Vendor: www.integrity-traders.com 
East Rochester, NY
 
Futures Experience: Intermediate
Platform: NT
 
eDanny's Avatar
 
Posts: 327 since Jul 2009
Thanks: 17 given, 419 received

Try this one...

...on for size.


futurestrader1 View Post
Here is what i want...

Based on a MACD with only the AVERAGE line plotting as the line and the histogram bars.

This one has a neutral plot on the histogram...i don't know how.

easy visible signals on the line is nice to have from green to red based on the zero line.


Attached Files
Register to download File Type: zip MACD_Z.zip (3.8 KB, 110 views)
Reply With Quote
The following 7 users say Thank You to eDanny for this post:
 
  #17 (permalink)
Market Wizard Apprectice
New York City, USA
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: ES, CL, 6E
 
futurestrader1's Avatar
 
Posts: 147 since Jul 2010
Thanks: 81 given, 40 received

Thanks eDanny....this is really great!

Reply With Quote
 
  #18 (permalink)
Trading Apprentice
Venice, Italy
 
Futures Experience: Master
Platform: CQG,Ninja Trader
Broker/Data: Zen-Fire
Favorite Futures: ES
 
Posts: 24 since May 2010
Thanks: 2 given, 17 received

Here's the MACD that paints bars when above or below zero line

Attached Files
Register to download File Type: zip MacdZeroLineColorBar.zip (2.3 KB, 94 views)
Reply With Quote
The following 2 users say Thank You to Markus for this post:
 
  #19 (permalink)
Market Wizard Apprectice
New York City, USA
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: ES, CL, 6E
 
futurestrader1's Avatar
 
Posts: 147 since Jul 2010
Thanks: 81 given, 40 received


eDanny View Post
...on for size.

Thanks.... I've been finding that the AVERAGE line, which you supplied above is great but the actual MACD signal line can work even better.

Can you please code it for the Signal line.... or if someone could reply with the code adjustment.


 
Code
 // 
//

#region Using declarations
using System;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.ComponentModel;
using System.Xml.Serialization;
using NinjaTrader.Data;
using NinjaTrader.Gui.Chart;
#endregion

// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
    /// <summary>
    /// The MACD_Z is a trend following momentum indicator.
    /// </summary>
    [Description("The MACD_Z is a trend following momentum indicator.")]
    public class MACD_Z : Indicator
    {
        #region Variables
        private int                    fast    = 5;
        private int                    slow    = 15;
        private int                    smooth    = 10;
        private MACD Z;
        #endregion

        /// <summary>
        /// This method is used to configure the indicator and is called once before any bar data is loaded.
        /// </summary>
        protected override void Initialize()
        {
            Add(new Plot(new Pen(Color.Green, 2), PlotStyle.Line, "Z_Hi"));
            Add(new Plot(new Pen(Color.Red, 2), PlotStyle.Line, "Z_Lo"));
            Add(new Plot(new Pen(Color.Green, 3), PlotStyle.Bar, "Z_Rising"));
            Add(new Plot(new Pen(Color.Red, 3), PlotStyle.Bar, "Z_Falling"));
            Add(new Plot(new Pen(Color.DimGray, 3), PlotStyle.Bar, "Z_Neutral"));

            CalculateOnBarClose = false;
            
        }
        public override string ToString()
        {return Name;}
        /// <summary>
        /// Calculates the indicator value(s) at the current index.
        /// </summary>
        protected override void OnBarUpdate()
        {
            if (CurrentBar == 0)
            {
                Z = MACD(Close, fast, slow, smooth);
                Plots[0].Min = 0;            
                Plots[1].Max = 0;
            }
            else
            {
                ZHi.Set(Z.Avg[0]); ZLo.Set(Z.Avg[0]);
                if(ZHi[0] > 0 && Z.Diff[0] > 0)
                    ZR.Set(Z.Diff[0]);
                else
                if(ZLo[0] < 0 && Z.Diff[0] < 0)
                    ZF.Set(Z.Diff[0]);
                else
                    ZN.Set(Z.Diff[0]);
            }
        }

        #region Properties
        /// <summary>
        /// </summary>
        [Browsable(false)]
        [XmlIgnore()]
        public DataSeries ZHi
        {
            get { return Values[0]; }
        }
        
        /// <summary>
        /// </summary>
        [Browsable(false)]
        [XmlIgnore()]
        public DataSeries ZLo
        {
            get { return Values[1]; }
        }

        /// <summary>
        /// </summary>
        [Browsable(false)]
        [XmlIgnore()]
        public DataSeries ZR
        {
            get { return Values[2]; }
        }
        
        /// <summary>
        /// </summary>
        [Browsable(false)]
        [XmlIgnore()]
        public DataSeries ZF
        {
            get { return Values[3]; }
        }
        
        /// <summary>
        /// </summary>
        [Browsable(false)]
        [XmlIgnore()]
        public DataSeries ZN
        {
            get { return Values[4]; }
        }

        /// <summary>
        /// </summary>
        [Description("Number of bars, fast")]
        [Category("Parameters")]
        public int Fast
        {
            get { return fast; }
            set { fast = Math.Max(1, value); }
        }

        /// <summary>
        /// </summary>
        [Description("Number of bars, slow")]
        [Category("Parameters")]
        public int Slow
        {
            get { return slow; }
            set { slow = Math.Max(1, value); }
        }

        /// <summary>
        /// </summary>
        [Description("Number of bars, smoothing")]
        [Category("Parameters")]
        public int Smooth
        {
            get { return smooth; }
            set { smooth = Math.Max(1, value); }
        }
        #endregion
    }
}

#region NinjaScript generated code. Neither change nor remove.
// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
    public partial class Indicator : IndicatorBase
    {
        private MACD_Z[] cacheMACD_Z = null;

        private static MACD_Z checkMACD_Z = new MACD_Z();

        /// <summary>
        /// The MACD_Z is a trend following momentum indicator.
        /// </summary>
        /// <returns></returns>
        public MACD_Z MACD_Z(int fast, int slow, int smooth)
        {
            return MACD_Z(Input, fast, slow, smooth);
        }

        /// <summary>
        /// The MACD_Z is a trend following momentum indicator.
        /// </summary>
        /// <returns></returns>
        public MACD_Z MACD_Z(Data.IDataSeries input, int fast, int slow, int smooth)
        {
            checkMACD_Z.Fast = fast;
            fast = checkMACD_Z.Fast;
            checkMACD_Z.Slow = slow;
            slow = checkMACD_Z.Slow;
            checkMACD_Z.Smooth = smooth;
            smooth = checkMACD_Z.Smooth;

            if (cacheMACD_Z != null)
                for (int idx = 0; idx < cacheMACD_Z.Length; idx++)
                    if (cacheMACD_Z[idx].Fast == fast && cacheMACD_Z[idx].Slow == slow && cacheMACD_Z[idx].Smooth == smooth && cacheMACD_Z[idx].EqualsInput(input))
                        return cacheMACD_Z[idx];

            MACD_Z indicator = new MACD_Z();
            indicator.BarsRequired = BarsRequired;
            indicator.CalculateOnBarClose = CalculateOnBarClose;
            indicator.Input = input;
            indicator.Fast = fast;
            indicator.Slow = slow;
            indicator.Smooth = smooth;
            indicator.SetUp();

            MACD_Z[] tmp = new MACD_Z[cacheMACD_Z == null ? 1 : cacheMACD_Z.Length + 1];
            if (cacheMACD_Z != null)
                cacheMACD_Z.CopyTo(tmp, 0);
            tmp[tmp.Length - 1] = indicator;
            cacheMACD_Z = tmp;
            Indicators.Add(indicator);

            return indicator;
        }

    }
}

// This namespace holds all market analyzer column definitions and is required. Do not change it.
namespace NinjaTrader.MarketAnalyzer
{
    public partial class Column : ColumnBase
    {
        /// <summary>
        /// The MACD_Z is a trend following momentum indicator.
        /// </summary>
        /// <returns></returns>
        [Gui.Design.WizardCondition("Indicator")]
        public Indicator.MACD_Z MACD_Z(int fast, int slow, int smooth)
        {
            return _indicator.MACD_Z(Input, fast, slow, smooth);
        }

        /// <summary>
        /// The MACD_Z is a trend following momentum indicator.
        /// </summary>
        /// <returns></returns>
        public Indicator.MACD_Z MACD_Z(Data.IDataSeries input, int fast, int slow, int smooth)
        {
            return _indicator.MACD_Z(input, fast, slow, smooth);
        }

    }
}

// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
    public partial class Strategy : StrategyBase
    {
        /// <summary>
        /// The MACD_Z is a trend following momentum indicator.
        /// </summary>
        /// <returns></returns>
        [Gui.Design.WizardCondition("Indicator")]
        public Indicator.MACD_Z MACD_Z(int fast, int slow, int smooth)
        {
            return _indicator.MACD_Z(Input, fast, slow, smooth);
        }

        /// <summary>
        /// The MACD_Z is a trend following momentum indicator.
        /// </summary>
        /// <returns></returns>
        public Indicator.MACD_Z MACD_Z(Data.IDataSeries input, int fast, int slow, int smooth)
        {
            if (InInitialize && input == null)
                throw new ArgumentException("You only can access an indicator with the default input/bar series from within the 'Initialize()' method");

            return _indicator.MACD_Z(input, fast, slow, smooth);
        }

    }
}
#endregion

Reply With Quote
 
  #20 (permalink)
Elite Member
Las Vegas, NV
 
Futures Experience: None
Platform: NinjaTrader
Broker/Data: NinjaTrader Brokerage
Favorite Futures: CL
 
Posts: 102 since Jun 2010
Thanks: 115 given, 103 received


I agree, this looks good and it would be better if it had the option to plot both the signal and average lines or just one of them. Thanks again, I'm not a coder, but would think it would be simple to do. Thanks!

Reply With Quote

Reply



futures io > > > > MACD with colours wanted

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
macd cross indicator wanted trdr NinjaTrader Programming 8 October 27th, 2012 04:40 PM
EMA colours grego NinjaTrader 2 October 28th, 2010 12:37 PM
Wanted: Programmer to develop optimizer Zoethecus NinjaTrader Programming 1 May 12th, 2010 06:26 PM
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 01:52 AM.

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-13 in 0.12 seconds with 20 queries on phoenix via your IP 54.92.201.232