Forum

OrdersTotal() not updating when I place an order!

I am trying to backtest an expert advisor and limit the number of pending orders to 1. However, when I place an order using the CTrade class, OrdersTotal() is still returning 0. I found this forum post but to no avail. Here's the function I'm running and the output: void Buy() { double sl = iOpen

Subplots not showing for any expert advisor

I'm having trouble getting subplots to appear for expert advisors. I only have this problem while testing on live data - when backtesting on historical data everything works fine. Is there a setting that disables subplots from showing? I am a relatively new user, so maybe I'm missing something here