Jump to content

imfm

Members
  • Posts

    325
  • Joined

  • Last visited

  • Days Won

    13

Reputation Activity

  1. Like
    imfm got a reaction from Traderbeauty in Interactive Brokers ES margin   
    Differences in Broker Policies: Different brokers have different policies and risk management strategies. Some brokers might offer lower day trading margins to attract more traders, especially those with smaller account sizes. This can be seen as an advantage for traders who want to maximize their leverage, but it also comes with increased risk.
    Risk Management: Brokers like Interactive Brokers might have a more conservative approach to risk management. By requiring a higher margin, they ensure that their clients have a larger buffer against potential losses. This can be beneficial for traders who want a more conservative trading environment.
    Different Types of Clients: Some brokers cater more to retail traders, while others might focus on institutional clients or professional traders. The margin requirements can reflect the typical clientele of the broker.
    Regulatory Differences: While there are regulatory minimums for margins set by bodies like the CFTC in the U.S., brokers are free to require higher margins if they see fit.
    Other Services and Fees: Sometimes, brokers might offer lower margins but might make up for it in other areas, such as higher fees for data, platform usage, or other services.
    Liquidity and Funding: Brokers with more liquidity or better funding sources might be able to offer lower margins due to their financial stability.

  2. Like
    imfm got a reaction from ⭐ laser1000it in Tradingview to ninjatrader8   
    We will have to wait until we can have the 32k version of ChatGPT with update 4.5 for everyone. I have had the opportunity to see a demonstration of that version with the API, and you can input 5000 lines of code and debug them in minutes. However, this requires at least 100 API queries for a few minutes. It can handle code conversion very well, but unfortunately, it is not available ye
  3. Like
    imfm got a reaction from ivan2007007 in Datafeed from NT8 to NT7   
    While there is no direct, built-in method to relay live data from NinjaTrader 8 (NT8) to NinjaTrader 7 (NT7), you can achieve this using a custom solution. One possible approach involves creating a custom script or tool that connects to the live data feed in NT8, then sends the data to NT7 through a TCP/IP connection or another communication method.
     
    Here are the steps you can follow:
    In NT8, create a custom add-on that connects to the live data feed, subscribes to the required instruments, and reads the incoming data.
    Establish a TCP/IP server within the add-on, which sends the live data received in NT8 to an external client.
    In NT7, create a custom data provider that connects to the TCP/IP server hosted in the NT8 add-on as a client. This custom data provider should receive the data from NT8 and update the charts or strategies in NT7 accordingly.

  4. Like
    imfm got a reaction from ⭐ goldeneagle1 in Datafeed from NT8 to NT7   
    another situation is if you have all your Indicators artillery on NT7 and need to trade cryptocurrency idont know today any solution to move crypto data feed to nt7 platform.
  5. Like
    imfm got a reaction from ⭐ goldeneagle1 in Datafeed from NT8 to NT7   
    While there is no direct, built-in method to relay live data from NinjaTrader 8 (NT8) to NinjaTrader 7 (NT7), you can achieve this using a custom solution. One possible approach involves creating a custom script or tool that connects to the live data feed in NT8, then sends the data to NT7 through a TCP/IP connection or another communication method.
     
    Here are the steps you can follow:
    In NT8, create a custom add-on that connects to the live data feed, subscribes to the required instruments, and reads the incoming data.
    Establish a TCP/IP server within the add-on, which sends the live data received in NT8 to an external client.
    In NT7, create a custom data provider that connects to the TCP/IP server hosted in the NT8 add-on as a client. This custom data provider should receive the data from NT8 and update the charts or strategies in NT7 accordingly.

  6. Like
    imfm got a reaction from GJTrader in BarOver Lap - Chop   
    enjoy! FULL NT8 COMPATIBLE
     

     

    #region Using declarations using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Input; using System.Windows.Media; using System.Xml.Serialization; using NinjaTrader.Cbi; using NinjaTrader.Gui; using NinjaTrader.Gui.Chart; using NinjaTrader.Gui.SuperDom; using NinjaTrader.Gui.Tools; using NinjaTrader.Data; using NinjaTrader.NinjaScript; using NinjaTrader.Core.FloatingPoint; using NinjaTrader.NinjaScript.DrawingTools; using NinjaTrader.NinjaScript.Indicators; using System.Windows.Shapes; using NinjaTrader.Gui.Chart; using NinjaTrader.NinjaScript.DrawingTools; #endregion // This namespace holds all indicators and is required. Do not change it. namespace NinjaTrader.NinjaScript.Indicators { /// <summary> /// The bar overlap indicator counts the number of bars that overlap with the current bar's range. /// </summary> public class BarOverlap : Indicator { #region Variables private int period = 100; private double numStdDev = 2.0; private Brush baseColor = Brushes.SlateBlue; private Brush signalColor = Brushes.Red; private int plot0Width = 4; private PlotStyle plot0Style = PlotStyle.Bar; private DashStyleHelper dash0Style = DashStyleHelper.Solid; #endregion protected override void OnStateChange() { if (State == State.SetDefaults) { Description = "The bar overlap indicator counts the number of bars that overlap with the current bar's range."; Name = "BarOverlap"; AddPlot(new Stroke(baseColor, plot0Width), plot0Style, "Overlap"); IsOverlay = false; } else if (State == State.DataLoaded) { // SetPlotAppearance(Plots[0], baseColor, plot0Width, dash0Style); } } protected override void OnBarUpdate() { int n = 0; while (n < CurrentBar) { if (Low[0] >= High[n] || High[0] <= Low[n]) break; n = n + 1; } Value[0] = n; if (Value[0] > SMA(Value, period)[0] + numStdDev * StdDev(Value, period)[0]) PlotBrushes[0][0] = signalColor; else PlotBrushes[0][0] = baseColor; } private void SetPlotAppearance(Plot plot, Brush brush, int width, DashStyleHelper dashStyle) { plot.Pen = new Pen(brush, width) { DashStyle = DashStyleHelperToDashStyle(dashStyle) }; } private DashStyle DashStyleHelperToDashStyle(DashStyleHelper dashStyleHelper) { switch (dashStyleHelper) { case DashStyleHelper.Dash: return DashStyles.Dash; case DashStyleHelper.DashDot: return DashStyles.DashDot; case DashStyleHelper.DashDotDot: return DashStyles.DashDotDot; case DashStyleHelper.Dot: return DashStyles.Dot; case DashStyleHelper.Solid: return DashStyles.Solid; default: return DashStyles.Solid; } } protected override void OnRender(ChartControl chartControl, ChartScale chartScale) { base.OnRender(chartControl, chartScale); Plots[0].Pen = new Pen(baseColor, plot0Width) { DashStyle = DashStyleHelperToDashStyle(dash0Style) }; } #region Properties [browsable(false)] [XmlIgnore()] public Series<double> Overlap { get { return Values[0]; } } [NinjaScriptProperty] [Display(Name = "NumStdDev", GroupName = "NinjaScriptParameters", Order = 1)] public double NumStdDev { get { return numStdDev; } set { numStdDev = Math.Max(0, value); } } [NinjaScriptProperty] [Display(Name = "BaseColor", GroupName = "NinjaScriptParameters", Order = 2)] public Brush BaseColor { get { return baseColor; } set { baseColor = value; } } [NinjaScriptProperty] [Display(Name = "SignalColor", GroupName = "NinjaScriptParameters", Order = 3)] public Brush SignalColor { get { return signalColor; } set { signalColor = value; } } [NinjaScriptProperty] [Display(Name = "Plot0Width", GroupName = "NinjaScriptParameters", Order = 4)] public int Plot0Width { get { return plot0Width; } set { plot0Width = Math.Max(1, value); } } [NinjaScriptProperty] [Display(Name = "Plot0Style", GroupName = "NinjaScriptParameters", Order = 5)] public PlotStyle Plot0Style { get { return plot0Style; } set { plot0Style = value; } } [NinjaScriptProperty] [Display(Name = "Dash0Style", GroupName = "NinjaScriptParameters", Order = 6)] public DashStyleHelper Dash0Style { get { return dash0Style; } set { dash0Style = value; } } #endregion } }
  7. Like
    imfm got a reaction from ⭐ apmoo in BarOver Lap - Chop   
    enjoy! FULL NT8 COMPATIBLE
     

     

    #region Using declarations using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Input; using System.Windows.Media; using System.Xml.Serialization; using NinjaTrader.Cbi; using NinjaTrader.Gui; using NinjaTrader.Gui.Chart; using NinjaTrader.Gui.SuperDom; using NinjaTrader.Gui.Tools; using NinjaTrader.Data; using NinjaTrader.NinjaScript; using NinjaTrader.Core.FloatingPoint; using NinjaTrader.NinjaScript.DrawingTools; using NinjaTrader.NinjaScript.Indicators; using System.Windows.Shapes; using NinjaTrader.Gui.Chart; using NinjaTrader.NinjaScript.DrawingTools; #endregion // This namespace holds all indicators and is required. Do not change it. namespace NinjaTrader.NinjaScript.Indicators { /// <summary> /// The bar overlap indicator counts the number of bars that overlap with the current bar's range. /// </summary> public class BarOverlap : Indicator { #region Variables private int period = 100; private double numStdDev = 2.0; private Brush baseColor = Brushes.SlateBlue; private Brush signalColor = Brushes.Red; private int plot0Width = 4; private PlotStyle plot0Style = PlotStyle.Bar; private DashStyleHelper dash0Style = DashStyleHelper.Solid; #endregion protected override void OnStateChange() { if (State == State.SetDefaults) { Description = "The bar overlap indicator counts the number of bars that overlap with the current bar's range."; Name = "BarOverlap"; AddPlot(new Stroke(baseColor, plot0Width), plot0Style, "Overlap"); IsOverlay = false; } else if (State == State.DataLoaded) { // SetPlotAppearance(Plots[0], baseColor, plot0Width, dash0Style); } } protected override void OnBarUpdate() { int n = 0; while (n < CurrentBar) { if (Low[0] >= High[n] || High[0] <= Low[n]) break; n = n + 1; } Value[0] = n; if (Value[0] > SMA(Value, period)[0] + numStdDev * StdDev(Value, period)[0]) PlotBrushes[0][0] = signalColor; else PlotBrushes[0][0] = baseColor; } private void SetPlotAppearance(Plot plot, Brush brush, int width, DashStyleHelper dashStyle) { plot.Pen = new Pen(brush, width) { DashStyle = DashStyleHelperToDashStyle(dashStyle) }; } private DashStyle DashStyleHelperToDashStyle(DashStyleHelper dashStyleHelper) { switch (dashStyleHelper) { case DashStyleHelper.Dash: return DashStyles.Dash; case DashStyleHelper.DashDot: return DashStyles.DashDot; case DashStyleHelper.DashDotDot: return DashStyles.DashDotDot; case DashStyleHelper.Dot: return DashStyles.Dot; case DashStyleHelper.Solid: return DashStyles.Solid; default: return DashStyles.Solid; } } protected override void OnRender(ChartControl chartControl, ChartScale chartScale) { base.OnRender(chartControl, chartScale); Plots[0].Pen = new Pen(baseColor, plot0Width) { DashStyle = DashStyleHelperToDashStyle(dash0Style) }; } #region Properties [browsable(false)] [XmlIgnore()] public Series<double> Overlap { get { return Values[0]; } } [NinjaScriptProperty] [Display(Name = "NumStdDev", GroupName = "NinjaScriptParameters", Order = 1)] public double NumStdDev { get { return numStdDev; } set { numStdDev = Math.Max(0, value); } } [NinjaScriptProperty] [Display(Name = "BaseColor", GroupName = "NinjaScriptParameters", Order = 2)] public Brush BaseColor { get { return baseColor; } set { baseColor = value; } } [NinjaScriptProperty] [Display(Name = "SignalColor", GroupName = "NinjaScriptParameters", Order = 3)] public Brush SignalColor { get { return signalColor; } set { signalColor = value; } } [NinjaScriptProperty] [Display(Name = "Plot0Width", GroupName = "NinjaScriptParameters", Order = 4)] public int Plot0Width { get { return plot0Width; } set { plot0Width = Math.Max(1, value); } } [NinjaScriptProperty] [Display(Name = "Plot0Style", GroupName = "NinjaScriptParameters", Order = 5)] public PlotStyle Plot0Style { get { return plot0Style; } set { plot0Style = value; } } [NinjaScriptProperty] [Display(Name = "Dash0Style", GroupName = "NinjaScriptParameters", Order = 6)] public DashStyleHelper Dash0Style { get { return dash0Style; } set { dash0Style = value; } } #endregion } }
  8. Like
    imfm got a reaction from ⭐ aotegaoteg in BarOver Lap - Chop   
    enjoy! FULL NT8 COMPATIBLE
     

     

    #region Using declarations using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Input; using System.Windows.Media; using System.Xml.Serialization; using NinjaTrader.Cbi; using NinjaTrader.Gui; using NinjaTrader.Gui.Chart; using NinjaTrader.Gui.SuperDom; using NinjaTrader.Gui.Tools; using NinjaTrader.Data; using NinjaTrader.NinjaScript; using NinjaTrader.Core.FloatingPoint; using NinjaTrader.NinjaScript.DrawingTools; using NinjaTrader.NinjaScript.Indicators; using System.Windows.Shapes; using NinjaTrader.Gui.Chart; using NinjaTrader.NinjaScript.DrawingTools; #endregion // This namespace holds all indicators and is required. Do not change it. namespace NinjaTrader.NinjaScript.Indicators { /// <summary> /// The bar overlap indicator counts the number of bars that overlap with the current bar's range. /// </summary> public class BarOverlap : Indicator { #region Variables private int period = 100; private double numStdDev = 2.0; private Brush baseColor = Brushes.SlateBlue; private Brush signalColor = Brushes.Red; private int plot0Width = 4; private PlotStyle plot0Style = PlotStyle.Bar; private DashStyleHelper dash0Style = DashStyleHelper.Solid; #endregion protected override void OnStateChange() { if (State == State.SetDefaults) { Description = "The bar overlap indicator counts the number of bars that overlap with the current bar's range."; Name = "BarOverlap"; AddPlot(new Stroke(baseColor, plot0Width), plot0Style, "Overlap"); IsOverlay = false; } else if (State == State.DataLoaded) { // SetPlotAppearance(Plots[0], baseColor, plot0Width, dash0Style); } } protected override void OnBarUpdate() { int n = 0; while (n < CurrentBar) { if (Low[0] >= High[n] || High[0] <= Low[n]) break; n = n + 1; } Value[0] = n; if (Value[0] > SMA(Value, period)[0] + numStdDev * StdDev(Value, period)[0]) PlotBrushes[0][0] = signalColor; else PlotBrushes[0][0] = baseColor; } private void SetPlotAppearance(Plot plot, Brush brush, int width, DashStyleHelper dashStyle) { plot.Pen = new Pen(brush, width) { DashStyle = DashStyleHelperToDashStyle(dashStyle) }; } private DashStyle DashStyleHelperToDashStyle(DashStyleHelper dashStyleHelper) { switch (dashStyleHelper) { case DashStyleHelper.Dash: return DashStyles.Dash; case DashStyleHelper.DashDot: return DashStyles.DashDot; case DashStyleHelper.DashDotDot: return DashStyles.DashDotDot; case DashStyleHelper.Dot: return DashStyles.Dot; case DashStyleHelper.Solid: return DashStyles.Solid; default: return DashStyles.Solid; } } protected override void OnRender(ChartControl chartControl, ChartScale chartScale) { base.OnRender(chartControl, chartScale); Plots[0].Pen = new Pen(baseColor, plot0Width) { DashStyle = DashStyleHelperToDashStyle(dash0Style) }; } #region Properties [browsable(false)] [XmlIgnore()] public Series<double> Overlap { get { return Values[0]; } } [NinjaScriptProperty] [Display(Name = "NumStdDev", GroupName = "NinjaScriptParameters", Order = 1)] public double NumStdDev { get { return numStdDev; } set { numStdDev = Math.Max(0, value); } } [NinjaScriptProperty] [Display(Name = "BaseColor", GroupName = "NinjaScriptParameters", Order = 2)] public Brush BaseColor { get { return baseColor; } set { baseColor = value; } } [NinjaScriptProperty] [Display(Name = "SignalColor", GroupName = "NinjaScriptParameters", Order = 3)] public Brush SignalColor { get { return signalColor; } set { signalColor = value; } } [NinjaScriptProperty] [Display(Name = "Plot0Width", GroupName = "NinjaScriptParameters", Order = 4)] public int Plot0Width { get { return plot0Width; } set { plot0Width = Math.Max(1, value); } } [NinjaScriptProperty] [Display(Name = "Plot0Style", GroupName = "NinjaScriptParameters", Order = 5)] public PlotStyle Plot0Style { get { return plot0Style; } set { plot0Style = value; } } [NinjaScriptProperty] [Display(Name = "Dash0Style", GroupName = "NinjaScriptParameters", Order = 6)] public DashStyleHelper Dash0Style { get { return dash0Style; } set { dash0Style = value; } } #endregion } }
  9. Like
    imfm got a reaction from ⭐ AndyS in BarOver Lap - Chop   
    enjoy! FULL NT8 COMPATIBLE
     

     

    #region Using declarations using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Input; using System.Windows.Media; using System.Xml.Serialization; using NinjaTrader.Cbi; using NinjaTrader.Gui; using NinjaTrader.Gui.Chart; using NinjaTrader.Gui.SuperDom; using NinjaTrader.Gui.Tools; using NinjaTrader.Data; using NinjaTrader.NinjaScript; using NinjaTrader.Core.FloatingPoint; using NinjaTrader.NinjaScript.DrawingTools; using NinjaTrader.NinjaScript.Indicators; using System.Windows.Shapes; using NinjaTrader.Gui.Chart; using NinjaTrader.NinjaScript.DrawingTools; #endregion // This namespace holds all indicators and is required. Do not change it. namespace NinjaTrader.NinjaScript.Indicators { /// <summary> /// The bar overlap indicator counts the number of bars that overlap with the current bar's range. /// </summary> public class BarOverlap : Indicator { #region Variables private int period = 100; private double numStdDev = 2.0; private Brush baseColor = Brushes.SlateBlue; private Brush signalColor = Brushes.Red; private int plot0Width = 4; private PlotStyle plot0Style = PlotStyle.Bar; private DashStyleHelper dash0Style = DashStyleHelper.Solid; #endregion protected override void OnStateChange() { if (State == State.SetDefaults) { Description = "The bar overlap indicator counts the number of bars that overlap with the current bar's range."; Name = "BarOverlap"; AddPlot(new Stroke(baseColor, plot0Width), plot0Style, "Overlap"); IsOverlay = false; } else if (State == State.DataLoaded) { // SetPlotAppearance(Plots[0], baseColor, plot0Width, dash0Style); } } protected override void OnBarUpdate() { int n = 0; while (n < CurrentBar) { if (Low[0] >= High[n] || High[0] <= Low[n]) break; n = n + 1; } Value[0] = n; if (Value[0] > SMA(Value, period)[0] + numStdDev * StdDev(Value, period)[0]) PlotBrushes[0][0] = signalColor; else PlotBrushes[0][0] = baseColor; } private void SetPlotAppearance(Plot plot, Brush brush, int width, DashStyleHelper dashStyle) { plot.Pen = new Pen(brush, width) { DashStyle = DashStyleHelperToDashStyle(dashStyle) }; } private DashStyle DashStyleHelperToDashStyle(DashStyleHelper dashStyleHelper) { switch (dashStyleHelper) { case DashStyleHelper.Dash: return DashStyles.Dash; case DashStyleHelper.DashDot: return DashStyles.DashDot; case DashStyleHelper.DashDotDot: return DashStyles.DashDotDot; case DashStyleHelper.Dot: return DashStyles.Dot; case DashStyleHelper.Solid: return DashStyles.Solid; default: return DashStyles.Solid; } } protected override void OnRender(ChartControl chartControl, ChartScale chartScale) { base.OnRender(chartControl, chartScale); Plots[0].Pen = new Pen(baseColor, plot0Width) { DashStyle = DashStyleHelperToDashStyle(dash0Style) }; } #region Properties [browsable(false)] [XmlIgnore()] public Series<double> Overlap { get { return Values[0]; } } [NinjaScriptProperty] [Display(Name = "NumStdDev", GroupName = "NinjaScriptParameters", Order = 1)] public double NumStdDev { get { return numStdDev; } set { numStdDev = Math.Max(0, value); } } [NinjaScriptProperty] [Display(Name = "BaseColor", GroupName = "NinjaScriptParameters", Order = 2)] public Brush BaseColor { get { return baseColor; } set { baseColor = value; } } [NinjaScriptProperty] [Display(Name = "SignalColor", GroupName = "NinjaScriptParameters", Order = 3)] public Brush SignalColor { get { return signalColor; } set { signalColor = value; } } [NinjaScriptProperty] [Display(Name = "Plot0Width", GroupName = "NinjaScriptParameters", Order = 4)] public int Plot0Width { get { return plot0Width; } set { plot0Width = Math.Max(1, value); } } [NinjaScriptProperty] [Display(Name = "Plot0Style", GroupName = "NinjaScriptParameters", Order = 5)] public PlotStyle Plot0Style { get { return plot0Style; } set { plot0Style = value; } } [NinjaScriptProperty] [Display(Name = "Dash0Style", GroupName = "NinjaScriptParameters", Order = 6)] public DashStyleHelper Dash0Style { get { return dash0Style; } set { dash0Style = value; } } #endregion } }
  10. Like
    imfm got a reaction from ⭐ alazif in BarOver Lap - Chop   
    enjoy! FULL NT8 COMPATIBLE
     

     

    #region Using declarations using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Input; using System.Windows.Media; using System.Xml.Serialization; using NinjaTrader.Cbi; using NinjaTrader.Gui; using NinjaTrader.Gui.Chart; using NinjaTrader.Gui.SuperDom; using NinjaTrader.Gui.Tools; using NinjaTrader.Data; using NinjaTrader.NinjaScript; using NinjaTrader.Core.FloatingPoint; using NinjaTrader.NinjaScript.DrawingTools; using NinjaTrader.NinjaScript.Indicators; using System.Windows.Shapes; using NinjaTrader.Gui.Chart; using NinjaTrader.NinjaScript.DrawingTools; #endregion // This namespace holds all indicators and is required. Do not change it. namespace NinjaTrader.NinjaScript.Indicators { /// <summary> /// The bar overlap indicator counts the number of bars that overlap with the current bar's range. /// </summary> public class BarOverlap : Indicator { #region Variables private int period = 100; private double numStdDev = 2.0; private Brush baseColor = Brushes.SlateBlue; private Brush signalColor = Brushes.Red; private int plot0Width = 4; private PlotStyle plot0Style = PlotStyle.Bar; private DashStyleHelper dash0Style = DashStyleHelper.Solid; #endregion protected override void OnStateChange() { if (State == State.SetDefaults) { Description = "The bar overlap indicator counts the number of bars that overlap with the current bar's range."; Name = "BarOverlap"; AddPlot(new Stroke(baseColor, plot0Width), plot0Style, "Overlap"); IsOverlay = false; } else if (State == State.DataLoaded) { // SetPlotAppearance(Plots[0], baseColor, plot0Width, dash0Style); } } protected override void OnBarUpdate() { int n = 0; while (n < CurrentBar) { if (Low[0] >= High[n] || High[0] <= Low[n]) break; n = n + 1; } Value[0] = n; if (Value[0] > SMA(Value, period)[0] + numStdDev * StdDev(Value, period)[0]) PlotBrushes[0][0] = signalColor; else PlotBrushes[0][0] = baseColor; } private void SetPlotAppearance(Plot plot, Brush brush, int width, DashStyleHelper dashStyle) { plot.Pen = new Pen(brush, width) { DashStyle = DashStyleHelperToDashStyle(dashStyle) }; } private DashStyle DashStyleHelperToDashStyle(DashStyleHelper dashStyleHelper) { switch (dashStyleHelper) { case DashStyleHelper.Dash: return DashStyles.Dash; case DashStyleHelper.DashDot: return DashStyles.DashDot; case DashStyleHelper.DashDotDot: return DashStyles.DashDotDot; case DashStyleHelper.Dot: return DashStyles.Dot; case DashStyleHelper.Solid: return DashStyles.Solid; default: return DashStyles.Solid; } } protected override void OnRender(ChartControl chartControl, ChartScale chartScale) { base.OnRender(chartControl, chartScale); Plots[0].Pen = new Pen(baseColor, plot0Width) { DashStyle = DashStyleHelperToDashStyle(dash0Style) }; } #region Properties [browsable(false)] [XmlIgnore()] public Series<double> Overlap { get { return Values[0]; } } [NinjaScriptProperty] [Display(Name = "NumStdDev", GroupName = "NinjaScriptParameters", Order = 1)] public double NumStdDev { get { return numStdDev; } set { numStdDev = Math.Max(0, value); } } [NinjaScriptProperty] [Display(Name = "BaseColor", GroupName = "NinjaScriptParameters", Order = 2)] public Brush BaseColor { get { return baseColor; } set { baseColor = value; } } [NinjaScriptProperty] [Display(Name = "SignalColor", GroupName = "NinjaScriptParameters", Order = 3)] public Brush SignalColor { get { return signalColor; } set { signalColor = value; } } [NinjaScriptProperty] [Display(Name = "Plot0Width", GroupName = "NinjaScriptParameters", Order = 4)] public int Plot0Width { get { return plot0Width; } set { plot0Width = Math.Max(1, value); } } [NinjaScriptProperty] [Display(Name = "Plot0Style", GroupName = "NinjaScriptParameters", Order = 5)] public PlotStyle Plot0Style { get { return plot0Style; } set { plot0Style = value; } } [NinjaScriptProperty] [Display(Name = "Dash0Style", GroupName = "NinjaScriptParameters", Order = 6)] public DashStyleHelper Dash0Style { get { return dash0Style; } set { dash0Style = value; } } #endregion } }
  11. Like
    imfm got a reaction from ⭐ goldeneagle1 in BarOver Lap - Chop   
    enjoy! FULL NT8 COMPATIBLE
     

     

    #region Using declarations using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Input; using System.Windows.Media; using System.Xml.Serialization; using NinjaTrader.Cbi; using NinjaTrader.Gui; using NinjaTrader.Gui.Chart; using NinjaTrader.Gui.SuperDom; using NinjaTrader.Gui.Tools; using NinjaTrader.Data; using NinjaTrader.NinjaScript; using NinjaTrader.Core.FloatingPoint; using NinjaTrader.NinjaScript.DrawingTools; using NinjaTrader.NinjaScript.Indicators; using System.Windows.Shapes; using NinjaTrader.Gui.Chart; using NinjaTrader.NinjaScript.DrawingTools; #endregion // This namespace holds all indicators and is required. Do not change it. namespace NinjaTrader.NinjaScript.Indicators { /// <summary> /// The bar overlap indicator counts the number of bars that overlap with the current bar's range. /// </summary> public class BarOverlap : Indicator { #region Variables private int period = 100; private double numStdDev = 2.0; private Brush baseColor = Brushes.SlateBlue; private Brush signalColor = Brushes.Red; private int plot0Width = 4; private PlotStyle plot0Style = PlotStyle.Bar; private DashStyleHelper dash0Style = DashStyleHelper.Solid; #endregion protected override void OnStateChange() { if (State == State.SetDefaults) { Description = "The bar overlap indicator counts the number of bars that overlap with the current bar's range."; Name = "BarOverlap"; AddPlot(new Stroke(baseColor, plot0Width), plot0Style, "Overlap"); IsOverlay = false; } else if (State == State.DataLoaded) { // SetPlotAppearance(Plots[0], baseColor, plot0Width, dash0Style); } } protected override void OnBarUpdate() { int n = 0; while (n < CurrentBar) { if (Low[0] >= High[n] || High[0] <= Low[n]) break; n = n + 1; } Value[0] = n; if (Value[0] > SMA(Value, period)[0] + numStdDev * StdDev(Value, period)[0]) PlotBrushes[0][0] = signalColor; else PlotBrushes[0][0] = baseColor; } private void SetPlotAppearance(Plot plot, Brush brush, int width, DashStyleHelper dashStyle) { plot.Pen = new Pen(brush, width) { DashStyle = DashStyleHelperToDashStyle(dashStyle) }; } private DashStyle DashStyleHelperToDashStyle(DashStyleHelper dashStyleHelper) { switch (dashStyleHelper) { case DashStyleHelper.Dash: return DashStyles.Dash; case DashStyleHelper.DashDot: return DashStyles.DashDot; case DashStyleHelper.DashDotDot: return DashStyles.DashDotDot; case DashStyleHelper.Dot: return DashStyles.Dot; case DashStyleHelper.Solid: return DashStyles.Solid; default: return DashStyles.Solid; } } protected override void OnRender(ChartControl chartControl, ChartScale chartScale) { base.OnRender(chartControl, chartScale); Plots[0].Pen = new Pen(baseColor, plot0Width) { DashStyle = DashStyleHelperToDashStyle(dash0Style) }; } #region Properties [browsable(false)] [XmlIgnore()] public Series<double> Overlap { get { return Values[0]; } } [NinjaScriptProperty] [Display(Name = "NumStdDev", GroupName = "NinjaScriptParameters", Order = 1)] public double NumStdDev { get { return numStdDev; } set { numStdDev = Math.Max(0, value); } } [NinjaScriptProperty] [Display(Name = "BaseColor", GroupName = "NinjaScriptParameters", Order = 2)] public Brush BaseColor { get { return baseColor; } set { baseColor = value; } } [NinjaScriptProperty] [Display(Name = "SignalColor", GroupName = "NinjaScriptParameters", Order = 3)] public Brush SignalColor { get { return signalColor; } set { signalColor = value; } } [NinjaScriptProperty] [Display(Name = "Plot0Width", GroupName = "NinjaScriptParameters", Order = 4)] public int Plot0Width { get { return plot0Width; } set { plot0Width = Math.Max(1, value); } } [NinjaScriptProperty] [Display(Name = "Plot0Style", GroupName = "NinjaScriptParameters", Order = 5)] public PlotStyle Plot0Style { get { return plot0Style; } set { plot0Style = value; } } [NinjaScriptProperty] [Display(Name = "Dash0Style", GroupName = "NinjaScriptParameters", Order = 6)] public DashStyleHelper Dash0Style { get { return dash0Style; } set { dash0Style = value; } } #endregion } }
  12. Like
    imfm got a reaction from ⭐ TRAD3R.GURU in BarOver Lap - Chop   
    enjoy! FULL NT8 COMPATIBLE
     

     

    #region Using declarations using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Input; using System.Windows.Media; using System.Xml.Serialization; using NinjaTrader.Cbi; using NinjaTrader.Gui; using NinjaTrader.Gui.Chart; using NinjaTrader.Gui.SuperDom; using NinjaTrader.Gui.Tools; using NinjaTrader.Data; using NinjaTrader.NinjaScript; using NinjaTrader.Core.FloatingPoint; using NinjaTrader.NinjaScript.DrawingTools; using NinjaTrader.NinjaScript.Indicators; using System.Windows.Shapes; using NinjaTrader.Gui.Chart; using NinjaTrader.NinjaScript.DrawingTools; #endregion // This namespace holds all indicators and is required. Do not change it. namespace NinjaTrader.NinjaScript.Indicators { /// <summary> /// The bar overlap indicator counts the number of bars that overlap with the current bar's range. /// </summary> public class BarOverlap : Indicator { #region Variables private int period = 100; private double numStdDev = 2.0; private Brush baseColor = Brushes.SlateBlue; private Brush signalColor = Brushes.Red; private int plot0Width = 4; private PlotStyle plot0Style = PlotStyle.Bar; private DashStyleHelper dash0Style = DashStyleHelper.Solid; #endregion protected override void OnStateChange() { if (State == State.SetDefaults) { Description = "The bar overlap indicator counts the number of bars that overlap with the current bar's range."; Name = "BarOverlap"; AddPlot(new Stroke(baseColor, plot0Width), plot0Style, "Overlap"); IsOverlay = false; } else if (State == State.DataLoaded) { // SetPlotAppearance(Plots[0], baseColor, plot0Width, dash0Style); } } protected override void OnBarUpdate() { int n = 0; while (n < CurrentBar) { if (Low[0] >= High[n] || High[0] <= Low[n]) break; n = n + 1; } Value[0] = n; if (Value[0] > SMA(Value, period)[0] + numStdDev * StdDev(Value, period)[0]) PlotBrushes[0][0] = signalColor; else PlotBrushes[0][0] = baseColor; } private void SetPlotAppearance(Plot plot, Brush brush, int width, DashStyleHelper dashStyle) { plot.Pen = new Pen(brush, width) { DashStyle = DashStyleHelperToDashStyle(dashStyle) }; } private DashStyle DashStyleHelperToDashStyle(DashStyleHelper dashStyleHelper) { switch (dashStyleHelper) { case DashStyleHelper.Dash: return DashStyles.Dash; case DashStyleHelper.DashDot: return DashStyles.DashDot; case DashStyleHelper.DashDotDot: return DashStyles.DashDotDot; case DashStyleHelper.Dot: return DashStyles.Dot; case DashStyleHelper.Solid: return DashStyles.Solid; default: return DashStyles.Solid; } } protected override void OnRender(ChartControl chartControl, ChartScale chartScale) { base.OnRender(chartControl, chartScale); Plots[0].Pen = new Pen(baseColor, plot0Width) { DashStyle = DashStyleHelperToDashStyle(dash0Style) }; } #region Properties [browsable(false)] [XmlIgnore()] public Series<double> Overlap { get { return Values[0]; } } [NinjaScriptProperty] [Display(Name = "NumStdDev", GroupName = "NinjaScriptParameters", Order = 1)] public double NumStdDev { get { return numStdDev; } set { numStdDev = Math.Max(0, value); } } [NinjaScriptProperty] [Display(Name = "BaseColor", GroupName = "NinjaScriptParameters", Order = 2)] public Brush BaseColor { get { return baseColor; } set { baseColor = value; } } [NinjaScriptProperty] [Display(Name = "SignalColor", GroupName = "NinjaScriptParameters", Order = 3)] public Brush SignalColor { get { return signalColor; } set { signalColor = value; } } [NinjaScriptProperty] [Display(Name = "Plot0Width", GroupName = "NinjaScriptParameters", Order = 4)] public int Plot0Width { get { return plot0Width; } set { plot0Width = Math.Max(1, value); } } [NinjaScriptProperty] [Display(Name = "Plot0Style", GroupName = "NinjaScriptParameters", Order = 5)] public PlotStyle Plot0Style { get { return plot0Style; } set { plot0Style = value; } } [NinjaScriptProperty] [Display(Name = "Dash0Style", GroupName = "NinjaScriptParameters", Order = 6)] public DashStyleHelper Dash0Style { get { return dash0Style; } set { dash0Style = value; } } #endregion } }
  13. Like
    imfm got a reaction from ⭐ alazif in fin-alg edu   
    congratulation and you have all my support for other releases if youneed info or files or sources i have also some ideas how crack agile in nt8
  14. Like
    imfm got a reaction from zoheb in fin-alg edu   
    congratulation and you have all my support for other releases if youneed info or files or sources i have also some ideas how crack agile in nt8
  15. Like
    imfm got a reaction from Gamma_boy in fin-alg edu   
    congratulation and you have all my support for other releases if youneed info or files or sources i have also some ideas how crack agile in nt8
  16. Like
    imfm got a reaction from ⭐ option trader in fin-alg edu   
    congratulation and you have all my support for other releases if youneed info or files or sources i have also some ideas how crack agile in nt8
  17. Like
    imfm got a reaction from Eric Nathan in https://www.simplysimpletradingsystems.com/ REQ   
    they use Heike nashi and have several years into stock twist portal posting good trades i think is the classical good system very simple with a good Money Management criteria
  18. Like
    imfm got a reaction from Eric Nathan in https://www.simplysimpletradingsystems.com/ REQ   
    https://www.simplysimpletradingsystems.com/
    Some body can share dlls or file i can get a education for that
  19. Like
    imfm got a reaction from ⭐ goldeneagle1 in Happy New Year   
    happy new year and good trading for all members
  20. Like
    imfm got a reaction from ⭐ nadjib in Happy New Year   
    happy new year and good trading for all members
  21. Like
    imfm got a reaction from Ganymed in REQ barometer   
    enjoy:"
    https://www.sendspace.com/file/8bm5iq
  22. Like
    imfm got a reaction from SignalTime in REQ barometer   
    enjoy:"
    https://www.sendspace.com/file/8bm5iq
  23. Like
    imfm got a reaction from thd193 in REQ barometer   
    enjoy:"
    https://www.sendspace.com/file/8bm5iq
  24. Like
    imfm got a reaction from Selvakumaran in REQ barometer   
    enjoy:"
    https://www.sendspace.com/file/8bm5iq
  25. Like
    imfm got a reaction from ⭐ moneyshare in REQ barometer   
    enjoy:"
    https://www.sendspace.com/file/8bm5iq
×
×
  • Create New...