protected override void OnMarketData(MarketDataEventArgs e)
{
if(Time[0].DayOfWeek != DayOfWeek.Wednesday)
{
local = DateTime.Now;
double a=e.MarketData.Ask.Volume;
double b=e.MarketData.Bid.Volume;
DrawTextFixed("tradetimes","Bid "+a.ToString()+ " Ask "+b.ToString()+ "\n"+local.ToString(),TextPosition.BottomRight,Col or.Black,new Font("Arial",10),Color.Black,Color.Yellow,5);
DrawTextFixed("PNLd"," Open PnL:$ "+Position.GetProfitLoss(GetCurrentAsk(), PerformanceUnit.Currency).ToString("0.00")+ " Closed PNL:$"+ profit.ToString("0.00")+ " #Trades: "+ (tradectr/2).ToString()+" " ,TextPosition.BottomLeft,Color.White,textFont,Colo r.Black,Color.Black,12);
}

Comment