NexusFi: Find Your Edge


Home Menu

 



Categories Help    

Search Results
Submitted by Ryanb
Found 2 matching entries

Sort by

Entries
Donchian Channel 5 *
MultiCharts .NET64 Version 12.0 Release (Build 18187)

 
Code
using System;
using System.Drawing;
using System.Linq;
using PowerLanguage.Function;

namespace PowerLanguage.Indicator
{
	public class Donchian Channel : IndicatorObject
	{
		public Donchian Channel(object _ctx):base(_ctx)
		{
			n_bars = 5;
		}

        [Input]
        public int n_bars { get; set; }
		
		private IPlotObject plothigh, plotlow;
		
		protected override void Create()
		{
			plothigh = AddPlot(new PlotAttributes("plothigh", EPlotShapes.Line, Color.Red));
			plotlow = AddPlot(new PlotAttributes("plotlow", EPlotShapes.Line, Color.Red));
		}
		
		protected override void StartCalc()
		{
		}
		
		protected override void CalcBar()
		{
			if(Bars.High[5] > 0 && Bars.Low[5] > 0)
			{
				plothigh.Set(Bars.High.Highest(n_bars));
				plotlow.Set(Bars.Low.Lowest(n_bars));
			}
		}
	}
}


Category MultiCharts 
 
Suggest other entries I might like
Details: Donchian Channel
Category: MultiCharts 


October 7th, 2019
Size: 1.73 KB
Downloaded: 136 times
Swing Ray V2 5 *
Originally made by: Marqui tweaked by [B]TheCatMan[/B]

Version 2.0
Note: improvement on the v1 is that the ray lines colors are kept in memory of NT so no more transparent lines when you boot NT.


Quoting 
This is a modification of the Swings indicator in NT7. The standard indicator does not extend the lines all the way to the right while this one does.

No one else had written this, so this is my attempt.

This indicator places ray lines at the swing highs and lows and removes them once the lines are violated. If you wish to show the violated swing points, there is an option to replace the rays with short lines.

There is also an option to sound an audio alert when each price line is broken.

This indicator uses some enhancements in NT7 to read the data directly from the drawn objects which are not supported in NT6.5.



Category NinjaTrader 7 Indicators 
 
Suggest other entries I might like
Details: Swing Ray V2
Category: NinjaTrader 7 Indicators 


February 4th, 2011
Size: 3.75 KB
Downloaded: 2176 times
 


 
Category
 




© 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