Hello, can you help me with this code, we want to change
We want to change to summer time on Ninja Trader, trying with this code but not working, can you help me?
protected override void OnBarUpdate()
{
HC = horaInicio*100; // Asignamos horaIniio a la variable HC
HF = horaFin *100; // Asignamos horaFin a la variable HF
if(fechacompletadeInicio == null)
{
fechacompletadeFin = Time [0].AddDays (evaluardias);
fechacompletadeFin = new DateTime (fechacompletadeFin.Value.Year,fechacompletadeFin.Value.Month,fechacompletadeFin.Value.Day,horaFin/100,00,00);
TimeZoneInfo nyTimeZone = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time");
TimeZoneInfo esTimeZone = TimeZoneInfo.FindSystemTimeZoneById("W. Europe Standard Time");