Output Window
10/17/2012 9:30:00 AM - ===== OpenPrice = 1450.5 =====
10/17/2012 9:30:00 AM - ===== OpenPrice = 1450.75 =====
10/17/2012 9:30:00 AM - ===== OpenPrice = 1450.75 =====
10/17/2012 9:30:00 AM - ===== OpenPrice = 1450.75 =====
10/17/2012 9:30:00 AM - ===== OpenPrice = 1450.75 =====
10/17/2012 9:30:00 AM - ===== OpenPrice = 1451 =====
10/17/2012 9:30:00 AM - ===== OpenPrice = 1451 =====
10/17/2012 9:30:00 AM - ===== OpenPrice = 1451 =====
10/17/2012 9:30:00 AM - ===== OpenPrice = 1451 =====
#region Variables private int openTime = 930; private int _OpenBar = 0; private double _OpenPrice = 0; #endregion protected override void OnBarUpdate(){ if (ToTime(Time[0]) == OpenTime*100){ if (FirstTickOfBar){ _OpenPrice = Open[0]; _OpenBar = CurrentBar; Print(Time[0]+" - ===== OpenPrice = "+_OpenPrice+" ====="); } } }
Comment