I want my Strategy to make Print statements to the output window OUTSIDE THE ONBARUPDATE method when my local time is 8 o'clock (DateTime.Now.Hour) . So, I want that print statement no matter if there was a new bar or not. Unfortunately, when I activate the strategy there are no print statements in the output window.
namespace NinjaTrader.NinjaScript.Strategies
{
public class XYZ: Strategy
{
public void PrintOnLocalTime()
{
if (DateTime.Now.Hour == 8)
Print("......");
}
Kirk

Comment