Conventional single-file chart indicator artifact
This artifact reads the active chart series and plots the current close. It does not create Renko bars, call AddRenko, define a custom BarsType, or replace NinjaTrader native bar construction. Select and validate the Renko series in NinjaTrader before interpreting the output.
using System.Windows.Media;
using NinjaTrader.NinjaScript;
namespace NinjaTrader.NinjaScript.Indicators
{
public class RenkoCloseMarker : Indicator
{
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Name = "RenkoCloseMarker";
Calculate = Calculate.OnBarClose;
IsOverlay = true;
AddPlot(Brushes.DodgerBlue, "CloseMarker");
}
}
protected override void OnBarUpdate()
{
Value[0] = Close[0];
}
}
}