else if (State == State.Configure)
{oVolume= new Series<double>(this);
oHigh= new Series<double>(this);
othv = new Series<double>(this);
CurrentHigh = new Series<double>(this);
currentHigh = double.MinValue;
xVolume=100;
sessionIterator = null;
currentDate = Core.Globals.MinDate;
}
}
protected override void OnBarUpdate()
{if (!Bars.BarsType.IsIntraday)
{
Draw.TextFixed(this, "NinjaScriptInfo", Custom.Resource.CurrentDayOHLError, TextPosition.BottomRight);
return;
}
if (sessionIterator == null)
sessionIterator = new Data.SessionIterator(BarsArray[0]);
bool sameDay = true;
if (currentDate == sessionIterator.GetTradingDay(Time[0]))
if(Volume[0]>XVolume)
{
// oVolume[0]=Volume[0];
currentHigh=High[0];
Draw.ArrowUp (this, "f" + CurrentBar , true, 0, Low [0], new SolidColorBrush( Colors.Orange ));
Print(""+currentHigh.ToString());
sameDay = false;
}
currentHigh = Math.Max(currentHigh, High[0]);
if(ShowHigh)
{
if ( !PlotCurrentValue || currentHigh != High[0])
{CurrentHigh[0] = currentHigh;
Print(""+currentHigh.ToString()+"/"+Time[0].ToString());
Draw.ArrowUp (this, "f" + CurrentBar , true, 0, Low [0], new SolidColorBrush( Colors.Red ));}
else
{ for (int idx = 0; idx < CurrentBar - 1; idx++)
CurrentHigh[idx] = currentHigh;
Print("xxxxxxx"+Time[0].ToString());}
Comment