The extra spaces came because my example had the extra spaces. You could condense lines by removing the extra spaces.
Also, as you saw in the demonstration of using prints video you have watched, be sure to clear the output window before reloading the script.
if (IsFirstTickOfBar) { Print("\r\n" + Time[0].ToString() + " Times[0][0].TimeOfDay: " + Times[0][0].TimeOfDay.ToString() + " => Apertura.TimeOfDay: " + Apertura.TimeOfDay.ToString()); Print(Time[0].ToString() + " Times[0][0].TimeOfDay: " + Times[0][0].TimeOfDay.ToString() + " < Cierre.TimeOfDay: " + Cierre.TimeOfDay.ToString()); Print(Time[0].ToString() + " Position.MarketPosition: " + Position.MarketPosition.ToString() + " == MarketPosition.Flat: " + MarketPosition.Flat.ToString()); Print(Time[0].ToString() + " VolumeUpDown1.UpVolume[0]: " + VolumeUpDown1.UpVolume[0].ToString() + " > 1300"); Print(Time[0].ToString() + " Close[1]: " + Close[1].ToString() + " < Swing1.SwingHigh[1]: " + Swing1.SwingHigh[1].ToString() + " && " + " Close[0]: " + Close[0].ToString() + " > Swing1.SwingHigh[0]: " + Swing1.SwingHigh[0].ToString()); Print(Time[0].ToString() + " Close[0]: " + Close[0].ToString() + " > EMA1[0]: " + EMA1[0].ToString()); Print(Time[0].ToString() + " Operaciones: " + Operaciones.ToString() + " < TradeDay: " + TradeDay.ToString()); Print(Time[0].ToString() + " Long: " + Long.ToString() + " == true: " + true.ToString()); }
In OnStateChange in the action block for State.Configure set
TraceOrders = true;
Taking a look at the output you have after 9:35
10/9/2020 9:36:00 AM Times[0][0].TimeOfDay: 09:36:00 => Apertura.TimeOfDay: 09:35:00 10/9/2020 9:36:00 AM Times[0][0].TimeOfDay: 09:36:00 < Cierre.TimeOfDay: 11:30:00 10/9/2020 9:36:00 AM Position.MarketPosition: Flat == MarketPosition.Flat: Flat 10/9/2020 9:36:00 AM VolumeUpDown1.UpVolume[0]: 4890 > 1300 10/9/2020 9:36:00 AM Close[1]: 11607 < Swing1.SwingHigh[1]: 11616 && Close[0]: [B]11610.75 >[/B] Swing1.SwingHigh[0]: [B]11616[/B] 10/9/2020 9:36:00 AM Close[0]: 11610.75 > EMA1[0]: 11606.932402745 10/9/2020 9:36:00 AM Operaciones: 0 < TradeDay: 1 10/9/2020 9:36:00 AM Long: True == true: True
11610.75 is not greater than11616.
Are you seeing any specific bars where all of the conditions are true?
Comment