⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥
swiattrader
Members-
Posts
91 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Articles
Everything posted by swiattrader
-
Find below the Revised AutoFibIndicator Script. Attached is a screen shot showing the compiled script (NT8 version: 8.1.6.3 64-bit). Enjoy! #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.Data; using NinjaTrader.NinjaScript; using NinjaTrader.Core.FloatingPoint; using NinjaTrader.NinjaScript.DrawingTools; #endregion namespace NinjaTrader.NinjaScript.Indicators { public class AutoFibIndicator : Indicator { private MAX maxIndicator; private MIN minIndicator; [NinjaScriptProperty] [Range(1, int.MaxValue)] [Display(Name="Lookback", Order=1, GroupName="Parameters")] public int Lookback { get; set; } #region Color Properties [XmlIgnore] [Display(Name="Fib 38.2 Color", Order=2, GroupName="Colors")] public Brush Fib382Color { get; set; } [Browsable(false)] public string Fib382ColorSerializable { get { return Serialize.BrushToString(Fib382Color); } set { Fib382Color = Serialize.StringToBrush(value); } } [XmlIgnore] [Display(Name="Fib 50.0 Color", Order=3, GroupName="Colors")] public Brush Fib50Color { get; set; } [Browsable(false)] public string Fib50ColorSerializable { get { return Serialize.BrushToString(Fib50Color); } set { Fib50Color = Serialize.StringToBrush(value); } } [XmlIgnore] [Display(Name="Fib 61.8 Color", Order=4, GroupName="Colors")] public Brush Fib618Color { get; set; } [Browsable(false)] public string Fib618ColorSerializable { get { return Serialize.BrushToString(Fib618Color); } set { Fib618Color = Serialize.StringToBrush(value); } } [XmlIgnore] [Display(Name="Long Signal Color", Order=5, GroupName="Colors")] public Brush LongColor { get; set; } [Browsable(false)] public string LongColorSerializable { get { return Serialize.BrushToString(LongColor); } set { LongColor = Serialize.StringToBrush(value); } } [XmlIgnore] [Display(Name="Short Signal Color", Order=6, GroupName="Colors")] public Brush ShortColor { get; set; } [Browsable(false)] public string ShortColorSerializable { get { return Serialize.BrushToString(ShortColor); } set { ShortColor = Serialize.StringToBrush(value); } } #endregion protected override void OnStateChange() { if (State == State.SetDefaults) { Description = @"Automatically plots Fibonacci levels based on a lookback period."; Name = "AutoFibIndicator"; Calculate = Calculate.OnBarClose; IsOverlay = true; DisplayInDataBox = true; DrawOnPricePanel = true; IsSuspendedWhileInactive = true; Lookback = 20; Fib382Color = Brushes.DodgerBlue; Fib50Color = Brushes.Gray; Fib618Color = Brushes.Gold; LongColor = Brushes.Lime; ShortColor = Brushes.Red; } else if (State == State.DataLoaded) { maxIndicator = MAX(High, Lookback); minIndicator = MIN(Low, Lookback); } } protected override void OnBarUpdate() { if (CurrentBar < Lookback) return; double swingHigh = maxIndicator[0]; double swingLow = minIndicator[0]; double range = swingHigh - swingLow; if (range <= 0) return; double fib382 = swingHigh - (range * 0.382); double fib50 = swingHigh - (range * 0.5); double fib618 = swingHigh - (range * 0.618); // Using static tags for lines ensures they "move" with the lookback rather than creating new ones Draw.Line(this, "Fib382", false, Lookback, fib382, 0, fib382, Fib382Color, DashStyleHelper.Solid, 2); Draw.Line(this, "Fib50", false, Lookback, fib50, 0, fib50, Fib50Color, DashStyleHelper.Dash, 2); Draw.Line(this, "Fib618", false, Lookback, fib618, 0, fib618, Fib618Color, DashStyleHelper.Solid, 3); // Signal Logic // Long: Close crosses above 61.8% if (CrossAbove(Close, fib618, 1)) { Draw.ArrowUp(this, "Long" + CurrentBar, true, 0, Low[0] - (5 * TickSize), LongColor); } // Short: Close crosses below 61.8% if (CrossBelow(Close, fib618, 1)) { Draw.ArrowDown(this, "Short" + CurrentBar, true, 0, High[0] + (5 * TickSize), ShortColor); } } } }
-
Thank you for your time, appreciate it. Have great rest of your day.
-
Happy New Year 2026. @redux when time permits, please take a look at this indicator. Thank you.
-
Bump
-
Thank you fxtrader99
-
I would appreciate if someone can share the following indicator: https://nexusfi.com/local_links.php?action=ratelink&catid=27&linkid=2721 Thnaks
-
-
Thank you dt4i, appreciate it.
-
Could someone share: https://nexusfi.com/local_links.php?linkid=1716
-
Thank you, appreciate it.
-
Hello, following up to find out if this TDUDynamicReversalZones was sucessfully educated? It is not included in the TDU package. If someone has it, please share. Thanks
-
Another option is from this vendor: https://automated-trading.ch/NT8/strategies/swing-breakout-sequence-strategy Here is the file for someone to educate ATCHSwingBreakoutSequenceStrategy_2.0.2.1.zip
-
Looks like it is working. Will you be sharing this version?
-
Thank you TickHunter for the pormpt response. I loaded the Dollar Bars without issue, will try it tomorrow during EST hours.
-
Correction, it works now.... thank you @apmoo really appreciated it.
-
Thanks in advance for the share. Will you be able to remove the only sim account allowed?
-
Great work, Will you be able to remove the SIM only trade restriction on the GridMaster102-ANY? Only SIM account is allowed. Thank you in advance.
-
As requested, check the following: are: https://www.sendspace.com/filegroup/VEamJAwfJlw1qlUL%2FssiZw
-
Thank you Mestor, appreciate it. Have great day!
-
Hello, please share these 2 indicator2. Thank you! https://nexusfi.com/local_links.php?linkid=2677 https://nexusfi.com/local_links.php?linkid=2674
-
Do you have the Fibar Scalping in your files? Thank you in advance.
-
Thank you, much appreciated.
-
Hello, can someone share the _NTForumSineWave.cs (Post # 73) - https://nexusfi.com/showthread.php?t=3673&page=8
-
Please share the following indicators: 1) tiyfDrawGrid--> https://nexusfi.com/showthread.php?t=12041&p=821927 2) tiyfTradePlanFactory --> https://nexusfi.com/showthread.php?t=57090&p=842647 Thank you