Run automation on your computer: keep it awake
- With "Run on this device", your strategy runs in a TradeHarbor browser tab and its orders go from your computer to your broker, not from our servers.
- It runs only while that tab is open and the computer is awake, so plug in, turn off sleep while plugged in, and stop the browser from putting the tab to sleep.
- The screen can turn off. The computer can't sleep, and the tab can't close.
- If the tab does close, an open position keeps its stop and target at the broker, but nothing manages it until you start the automation again.
Some prop firms only allow orders that come from your own device. Topstep's API terms, for example, let a server read a TopstepX account but not trade it. "Run on this device" is for that: you start the automation from a browser tab on your computer, and every order it places goes from that browser straight to your broker. You choose it on the automation's card in TradeHarbor, under Runs on.
The cost is that your computer has to stay on and the tab has to keep running for as long as you want the automation trading. Here's how to set that up.
Before the session
- Plug the computer in. Batteries, battery-saver modes and browsers' energy savers all slow or pause background tabs.
- Open TradeHarbor in its own browser window, go to Automation and press Start on this device on the automation's card. A bar at the top of the app says it's running on this device.
- Leave that window open. It can sit behind other windows, but don't close it, and don't let anything close the browser.
While the tab is in front, TradeHarbor asks the browser to keep the screen on. Once it's behind other windows that request ends, which is fine as long as the computer itself doesn't sleep.
Windows 11
- Sleep: Settings > System > Power & battery > Screen, sleep & hibernate timeouts (called Screen and sleep on some versions). Set "When plugged in, put my device to sleep after" to Never. The screen turning off is fine.
- Laptop lid: Control Panel > Hardware and Sound > Power Options > Choose what closing the lid does. Set "When I close the lid" to Do nothing for Plugged in, or keep the lid open.
- Restarts for updates: Settings > Windows Update > Advanced options > Active hours. Cover the hours you trade so Windows doesn't restart in the middle of a session.
Mac
- MacBook: System Settings > Battery > Options. Turn on Prevent automatic sleeping on power adapter when the display is off, and keep it on the charger. A closed lid puts a MacBook to sleep unless it's connected to an external display, so keep the lid open.
- iMac, Mac mini, Mac Studio: System Settings > Energy. Turn on Prevent automatic sleeping when the display is off.
- Software updates: System Settings > General > Software Update. Use the info button next to Automatic updates and turn off installing macOS updates automatically, or update outside your trading hours.
Your browser
Browsers save memory and power by putting tabs you aren't looking at to sleep, and a sleeping tab stops trading. Tell the browser to leave TradeHarbor alone:
- Chrome: Settings > Performance. Under "Always keep these sites active", add
tradeharbor.co. If Energy Saver is on, plugging in keeps it from slowing the tab. - Edge: Settings > System and performance. Under "Never put these sites to sleep", add
tradeharbor.co. - Safari: Safari has no per-site setting for this. Chrome or Edge is the safer choice for a long session.
Settings names change between versions. If one isn't where this guide says, search the browser's or the system's settings for "sleep".
If something goes wrong
- The tab closed or the computer slept. The automation stops. A live position keeps the stop and target it was placed with at your broker, but nothing manages it or closes it at your closing time. Open TradeHarbor and start the automation again, or manage the position in your platform.
- The browser paused the tab for a while. TradeHarbor notes the gap in the automation's log with its times, so you can see it happened.
- Another tab or device starts the same automation. That one takes over and this tab stops, without closing the position, since the new one manages it now.
Account-level risk guard enforcement, which locks the account and closes positions when one of your guards trips, runs on TradeHarbor's servers whichever way the automation runs.
Servers or your device?
Running on TradeHarbor's servers means nothing on your side has to stay on. Running on your device keeps your orders coming from your own computer. Which one fits depends on your firm's rules and on whether you can keep a computer running through your sessions. Check your firm's current API terms before you choose; if they don't allow trading from a server, running there is your risk.
Next steps
New to automation? Start with how to automate a trading strategy, or see how automated trading works from signal to order.