Re: Pending order behavior under news load: compare notes
Posted: Sun Oct 04, 2026 11:01 pm
What makes this version pro?
AccessRights.FullAccess: Added at the top to allow the bot to read/write files to your hard drive. cTrader will prompt you to accept this permission when you run it.
Millisecond Timestamps: The CSV logs time down to the exact millisecond (yyyy-MM-dd HH:mm:ss.fff), which is vital for proving exactly when a news gap hit.
Safe File Handling: If you leave the CSV open in Excel while the bot is running, standard bots crash. This one uses a try/catch block so it will print an error to the log, skip that single write, but keep the bot running and tracking seamlessly.
Thread-Safe UI: cTrader requires UI updates to happen on the main thread. The Chart.BeginInvokeOnMainThread wrapper ensures your on-chart dashboard updates smoothly without freezing the platform during high-volatility news events.
AccessRights.FullAccess: Added at the top to allow the bot to read/write files to your hard drive. cTrader will prompt you to accept this permission when you run it.
Millisecond Timestamps: The CSV logs time down to the exact millisecond (yyyy-MM-dd HH:mm:ss.fff), which is vital for proving exactly when a news gap hit.
Safe File Handling: If you leave the CSV open in Excel while the bot is running, standard bots crash. This one uses a try/catch block so it will print an error to the log, skip that single write, but keep the bot running and tracking seamlessly.
Thread-Safe UI: cTrader requires UI updates to happen on the main thread. The Chart.BeginInvokeOnMainThread wrapper ensures your on-chart dashboard updates smoothly without freezing the platform during high-volatility news events.