Here's the proof:
This code is insanely easy...try it on your box...
---------------------
public class RB3BarSetupV2 : Strategy
{
#region Variables
// Wizard generated variables
private int qty = 1; // Default setting for Qty
// User defined variables (add any user defined variables below)
bool flag=false;
#endregion
/// <summary>
/// This method is used to configure the strategy and is called once before any strategy method is called.
/// </summary>
protected override void Initialize()
{
Add( PeriodType.Minute, 1);
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
Print("Time:"+Time[0]);
}
-----------------
You will see Time printed twice in the Output window.
Comment