NexusFi: Find Your Edge


Home Menu

 





jtSwCz Indicator for Ninja 7


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Markus with 4 posts (0 thanks)
    2. looks_two vegasfoster with 1 posts (0 thanks)
    3. looks_3 gby123 with 1 posts (1 thanks)
    4. looks_4 Big Mike with 1 posts (0 thanks)
    1. trending_up 2,568 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 6 posts
    2. attach_file 2 attachments




 
Search this Thread

jtSwCz Indicator for Ninja 7

  #1 (permalink)
Markus
Frankfurt am Main
 
Posts: 38 since May 2010
Thanks Given: 6
Thanks Received: 33

This indicator don't work with Ninja 7
Can you halp me?


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

// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
    
/// <summary>
    /// 
    /// </summary>
    
[Description("Leverage the WoodiesCCI Sidewinder and Chopzone  indicators.")]
    public class 
jtSwCz Indicator
    
{

        private 
WoodiesCCI cci;
        
/// <summary>
        /// This method is used to configure the indicator and is called once before any bar data is loaded.
        /// </summary>
        
protected override void Initialize()
        {
            
CalculateOnBarClose    true;
            
Overlay                true;
            
PriceTypeSupported    false;
            
cci WoodiesCCI(251434256301002);
            
        }

        
/// <summary>
        /// Called on each bar update event (incoming tick)
        /// </summary>
        
protected override void OnBarUpdate()
        {
             
string tagName "jtSwCz" CurrentBar;
            
            if (
cci.Sidewinder[0] > 0) {
            
                if (
cci.ChopZone[0] == 4){
                    
DrawDot(tagNametrue0High[0] + TickSizeColor.Cyan);
                } else if (
cci.ChopZone[0] == -4){
                    
DrawDot(tagNametrue0Low[0] - TickSizeColor.Red);
                } else {
                    
RemoveDrawObject(tagName);
                }
            } 
        }
    }
}

#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 
jtSwCz[] cachejtSwCz null;

        private static 
jtSwCz checkjtSwCz = new jtSwCz();

        
/// <summary>
        /// Leverage the WoodiesCCI Sidewinder and Chopzone  indicators.
        /// </summary>
        /// <returns></returns>
        
public jtSwCz jtSwCz()
        {
            return 
jtSwCz(Input);
        }

        
/// <summary>
        /// Leverage the WoodiesCCI Sidewinder and Chopzone  indicators.
        /// </summary>
        /// <returns></returns>
        
public jtSwCz jtSwCz(Data.IDataSeries input)
        {

            if (
cachejtSwCz != null)
                for (
int idx 0idx cachejtSwCz.Lengthidx++)
                    if (
cachejtSwCz[idx].EqualsInput(input))
                        return 
cachejtSwCz[idx];

            
jtSwCz indicator = new jtSwCz();
            
indicator.BarsRequired BarsRequired;
            
indicator.CalculateOnBarClose CalculateOnBarClose;
            
indicator.Input input;
            
indicator.SetUp();

            
jtSwCz[] tmp = new jtSwCz[cachejtSwCz == null cachejtSwCz.Length 1];
            if (
cachejtSwCz != null)
                
cachejtSwCz.CopyTo(tmp0);
            
tmp[tmp.Length 1] = indicator;
            
cachejtSwCz 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>
        /// Leverage the WoodiesCCI Sidewinder and Chopzone  indicators.
        /// </summary>
        /// <returns></returns>
        
[Gui.Design.WizardCondition("Indicator")]
        public 
Indicator.jtSwCz jtSwCz()
        {
            return 
_indicator.jtSwCz(Input);
        }

        
/// <summary>
        /// Leverage the WoodiesCCI Sidewinder and Chopzone  indicators.
        /// </summary>
        /// <returns></returns>
        
public Indicator.jtSwCz jtSwCz(Data.IDataSeries input)
        {
            return 
_indicator.jtSwCz(input);
        }

    }
}

// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
    public 
partial class Strategy StrategyBase
    
{
        
/// <summary>
        /// Leverage the WoodiesCCI Sidewinder and Chopzone  indicators.
        /// </summary>
        /// <returns></returns>
        
[Gui.Design.WizardCondition("Indicator")]
        public 
Indicator.jtSwCz jtSwCz()
        {
            return 
_indicator.jtSwCz(Input);
        }

        
/// <summary>
        /// Leverage the WoodiesCCI Sidewinder and Chopzone  indicators.
        /// </summary>
        /// <returns></returns>
        
public Indicator.jtSwCz jtSwCz(Data.IDataSeries input)
        {
            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.jtSwCz(input);
        }

    }
}
#endregion 

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
19 thanks
GFIs1 1 DAX trade per day journal
16 thanks
Spoo-nalysis ES e-mini futures S&P 500
14 thanks
  #2 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 844

It's not letting me paste this, can you post the cs file?

Reply With Quote
  #3 (permalink)
Markus
Frankfurt am Main
 
Posts: 38 since May 2010
Thanks Given: 6
Thanks Received: 33



vegasfoster View Post
It's not letting me paste this, can you post the cs file?

here it is

Attached Files
Elite Membership required to download: jtSwCz.cs
Reply With Quote
  #4 (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,440 since Jun 2009
Thanks Given: 33,214
Thanks Received: 101,599

 
Thread Moved


Moved to NinjaTrader Programming



When creating a new thread, note which subforum you are in. Here is a short list of suggestions:

- Topic: Anything to do with an Elite indicator -> Subforum: The Elite Circle
- Topic: Looking for an existing indicator, or how-to use an indicator -> Subforum: (the platform)
- Topic: Programmer needing help with non-Elite indicator -> Subforum: (the platform) - Programming
- Topic: Want an indicator created/modified -> Reply to "Want indicator created free" in Elite Circle
- Topic: Vendors (trading rooms, commercial indicators) -> Subforum: Vendors/Product Reviews
- Topic: Discussion of Forex or Currency trading -> Subforum: Forex and Currency Trading
- Topic: Journals of your trading -> Subforum: Trading Journals or Elite Trading Journals
- Topic: General trading related discussions -> Subforum: Traders Hideout
- Topic: Discussion of a trading method -> Subforum: Traders Hideout
- Topic: Automated Trading -> Subforum: Elite Automated Trading

Last, any Elite Member may create more or less any of these topics in The Elite Circle at your own discretion (your support is appreciated).

This is just a short general list and doesn't cover everything. If you are unsure where to create your new thread, just create it in Traders Hideout and a moderator will move it if necessary.

-- Big Mike Trading



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
  #5 (permalink)
Markus
Frankfurt am Main
 
Posts: 38 since May 2010
Thanks Given: 6
Thanks Received: 33


vegasfoster View Post
It's not letting me paste this, can you post the cs file?

bump!

Reply With Quote
  #6 (permalink)
 gby123 
Austin, Texas
 
Experience: Intermediate
Platform: NT
Broker: Amp/Zen-Fire
Trading: TF, 6E
Posts: 2 since Jun 2011
Thanks Given: 0
Thanks Received: 2

Here is a version that compiles and "works".
I could not get the woodies indicator overload to work for some reason.
Gary

Attached Files
Elite Membership required to download: jtSwCz.cs
Reply With Quote
Thanked by:
  #7 (permalink)
Markus
Frankfurt am Main
 
Posts: 38 since May 2010
Thanks Given: 6
Thanks Received: 33


gby123 View Post
Here is a version that compiles and "works".
I could not get the woodies indicator overload to work for some reason.
Gary

Thank You!

Reply With Quote




Last Updated on July 1, 2011


© 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