With the Print() commands in my current code, I should get two outputs every new bar right? (One for entering the onbarupdate() and the other upon entering the if () statement) Making sure I understand how the "calculateonbarclose = true" works.
protected override void Initialize()
{
CalculateOnBarClose = true;
Overlay = false;
PriceTypeSupported = false;
}
protected override void OnBarUpdate()
{
Print("Code has entered onbarupdate procedure");
if (FirstTickOfBar)
{
Print("Code has entered if statement");
SendMail("[email protected]", "[email protected]", "EURUSD - New Bar Alert", "New bar just opened");
}
}
Comment